Parsing error on SET (sqlite database) #644
-
Sqlpage is a super app for no developer low low coder like me ! I try to setup a simple website and I am following the documentation step by step. From yesterday I have a weird issue : my code at the beginning of a shell component was working and now I have parsing error : sql parser error: Expected: identifier, found: $role at Line: 1, Column: 5` I have done modification , with $ and withnot..... but I have still the parsing error. I have this SET instruction in another file with the same issue (working last week and no more working from yesterday). Any help is welcome ! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
role is a reserved keyword in sql. Precious versions of our sql parser allowed it as a variable name, but newer versions are stricter. You can rename the variable to something like user_role |
Beta Was this translation helpful? Give feedback.
-
I reported the issue upstream: apache/datafusion-sqlparser-rs#1469 And proposed a fix : apache/datafusion-sqlparser-rs#1474 Now just waiting for it to get merged |
Beta Was this translation helpful? Give feedback.
-
My fix was accepted, it'll be in the next version of SQLPage |
Beta Was this translation helpful? Give feedback.
role is a reserved keyword in sql. Precious versions of our sql parser allowed it as a variable name, but newer versions are stricter. You can rename the variable to something like user_role