Figure out why the CLI doesn't load the example extensions #3

Closed
opened 2026-05-19 08:14:27 +02:00 by oysteikt · 1 comment
Owner
Parse error: near "add": syntax error
  SELECT add(1, 2);
         ^--- error here
``` Parse error: near "add": syntax error SELECT add(1, 2); ^--- error here ```
oysteikt added the bug label 2026-05-19 08:14:27 +02:00
Author
Owner

Several reasons:

  • add doesn't seem to be an allowed name, sub and mult worked. Switched them all to myadd, mysub and mymult.
  • they weren't registered with the auto_register function.
  • you need to actually open a database for this function to execute, it's not enough to just open a shell
  • some other bugs with nix and compile flags and make
Several reasons: - `add` doesn't seem to be an allowed name, `sub` and `mult` worked. Switched them all to `myadd`, `mysub` and `mymult`. - they weren't registered with the auto_register function. - you need to actually open a database for this function to execute, it's not enough to just open a shell - some other bugs with nix and compile flags and make
Sign in to join this conversation.