diff options
author | Guilhem Bichot <guilhem@mysql.com> | 2010-11-05 14:16:27 +0100 |
---|---|---|
committer | Guilhem Bichot <guilhem@mysql.com> | 2010-11-05 14:16:27 +0100 |
commit | f80d13e5303c80e149d82701d97bb5f57a18c4f2 (patch) | |
tree | f404754be54b6d7ec395be8cade2484f79a24e02 /sql/sql_partition.cc | |
parent | 373be0d5fae0aa9a68a15d4c7237868f79917843 (diff) | |
download | mariadb-git-f80d13e5303c80e149d82701d97bb5f57a18c4f2.tar.gz |
Fix for BUG#57316 "It is not clear how to disable autocommit"
add boolean command-line option --autocommit.
Diffstat (limited to 'sql/sql_partition.cc')
-rw-r--r-- | sql/sql_partition.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc index 455d95ada85..70b200bf3cd 100644 --- a/sql/sql_partition.cc +++ b/sql/sql_partition.cc @@ -1997,7 +1997,7 @@ static int add_part_field_list(File fptr, List<char> field_list) String field_string("", 0, system_charset_info); THD *thd= current_thd; ulonglong save_options= thd->variables.option_bits; - thd->variables.option_bits= 0; + thd->variables.option_bits&= ~OPTION_QUOTE_SHOW_CREATE; append_identifier(thd, &field_string, field_str, strlen(field_str)); thd->variables.option_bits= save_options; @@ -2016,8 +2016,7 @@ static int add_name_string(File fptr, const char *name) String name_string("", 0, system_charset_info); THD *thd= current_thd; ulonglong save_options= thd->variables.option_bits; - - thd->variables.option_bits= 0; + thd->variables.option_bits&= ~OPTION_QUOTE_SHOW_CREATE; append_identifier(thd, &name_string, name, strlen(name)); thd->variables.option_bits= save_options; |