logica icon indicating copy to clipboard operation
logica copied to clipboard

Handling of Quoting in Rules

Open yilinxia opened this issue 2 months ago • 3 comments

Working Case

Example("'case'");

✅ Correctly recognized as a valid call.

Failing Case

Example('"case"');

❌ Produces error:

[ Error ] Found no call in rule head.

yilinxia avatar Sep 29 '25 21:09 yilinxia

To resolve this, we should use

@Engine("duckdb");
Example(QuoteIt("case"));

yilinxia avatar Sep 29 '25 21:09 yilinxia

@EvgSkv I just realized I forgot the QuoteIt usage under Sqlite, could you please add it here for record : ) Thanks

PS: Is there a reason we use QuoteIt instead of'"case"'

yilinxia avatar Sep 29 '25 21:09 yilinxia

Single quotes were added to Logica, let me know if anything is missing. Example CoLab

EvgSkv avatar Oct 26 '25 03:10 EvgSkv