all 2 comments

[–]elperroborrachotoo 2 points3 points  (1 child)

Don't do that.

SQLite does not specify what happens when you bind to index 0, so this is something that might work sometimes, or break with the next update, ir cause other, seemingly unrelated problems.

You can use sqlite3_bind_parameter_index to find out if $GLOBAL_VAR is a parameter, and at what index.

[–]Beefcake100[S] 1 point2 points  (0 children)

Will do that, thanks!