lei-jia-xing opened a new issue, #3036:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/3036

   ### Reproduction
   
   With `sqlparser = "=0.64.0"`:
   
   ```rust
   use sqlparser::{dialect::SQLiteDialect, parser::Parser};
   
   fn main() {
       for sql in [
           "PRAGMA recursive_triggers = true;",
           "PRAGMA foreign_keys(ON);",
       ] {
           match Parser::parse_sql(&SQLiteDialect {}, sql) {
               Ok(statements) => println!("{statements:?}"),
               Err(error) => println!("{error}"),
           }
       }
   }
   ```
   
   ### Actual behavior
   
   ```text
   sql parser error: Expected: number or string or ? placeholder, found: true 
at Line: 1, Column: 29
   sql parser error: Expected: a concrete value, found: ON at Line: 1, Column: 
21
   ```
   
   ### Expected behavior
   
   Parse both statements as `Statement::Pragma` with a value. SQLite allows 
unquoted boolean arguments such as `ON`, `OFF`, `TRUE`, and `FALSE` in both 
forms. I verified both examples on SQLite 3.53.3. Querying each setting after 
the assignment returned `1`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to