Skip to content
Discussion options

You must be logged in to vote

Hello and welcome to SQLPage !

Short answer: the notion of static simple select (select statements that are not sent to the database) is very restrictive. No arithmetic, no expressions, no function calls, no database variable references. Only single quoted string literals, literal numbers, booleans, literal NULLs, and sqlpage $variables qualify.

Examples:

  • static simple select, not sent to the database
    • select 'form' as component, 'handle_form.sql' as action;
    • select 'text' as component, $alert_message as contents;
  • sent to the database
    • select 'from' as component, 'handle_form.sql?id=' || $id as action;
    • select 'text' as component, $alert_message as contents where $should_alert;

I upda…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Aesth
Comment options

You must be logged in to vote
1 reply
@lovasoa
Comment options

Comment options

You must be logged in to vote
1 reply
@lovasoa
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants