mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-22 15:04:04 +00:00
Add GLOBAL context/modifier to SET statements (#1767)
This commit is contained in:
parent
e3e88290cd
commit
f487cbe004
7 changed files with 72 additions and 39 deletions
|
@ -618,7 +618,7 @@ fn parse_set_variables() {
|
|||
assert_eq!(
|
||||
mysql_and_generic().verified_stmt("SET LOCAL autocommit = 1"),
|
||||
Statement::Set(Set::SingleAssignment {
|
||||
local: true,
|
||||
scope: ContextModifier::Local,
|
||||
hivevar: false,
|
||||
variable: ObjectName::from(vec!["autocommit".into()]),
|
||||
values: vec![Expr::value(number("1"))],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue