mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-11-29 18:37:36 +08:00
Support set autocommit=on
This commit is contained in:
parent
31316e4631
commit
347ca41e26
@ -216,6 +216,13 @@ sql_context_is_autocommit_on(sql_context_t *context)
|
||||
gboolean on;
|
||||
if (sql_expr_is_boolean(expr->right, &on)) {
|
||||
return on;
|
||||
} else {
|
||||
sql_expr_t *p = expr->right;
|
||||
if (p && p->op == TK_ON) {
|
||||
if (strcasecmp(p->token_text, "on") == 0) {
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user