Support set autocommit=on

This commit is contained in:
lazio579 2019-01-10 17:12:25 +08:00
parent 31316e4631
commit 347ca41e26

View File

@ -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;
}
}
}
}
}