diff options
author | Monty <monty@mariadb.org> | 2016-10-02 16:39:40 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2016-10-05 01:11:08 +0300 |
commit | 7b96416f3c43f02240864f378513330b85f49521 (patch) | |
tree | e4fa5f570965d5cc36e983275e08f36431a4a654 /sql/sql_select.h | |
parent | 8be53a389c8eebed337057fa366b7c4506ba16b1 (diff) | |
download | mariadb-git-7b96416f3c43f02240864f378513330b85f49521.tar.gz |
Use sql_mode_t for sql_mode.
This fixed several cases where we where using just ulong for sql_mode
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index fb3f71c0769..f3b59e5d20c 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -1757,7 +1757,7 @@ public: enum store_key_result result; THD *thd= to_field->table->in_use; enum_check_fields saved_count_cuted_fields= thd->count_cuted_fields; - ulonglong sql_mode= thd->variables.sql_mode; + sql_mode_t orig_sql_mode= thd->variables.sql_mode; thd->variables.sql_mode&= ~(MODE_NO_ZERO_IN_DATE | MODE_NO_ZERO_DATE); thd->variables.sql_mode|= MODE_INVALID_DATES; @@ -1766,7 +1766,7 @@ public: result= copy_inner(); thd->count_cuted_fields= saved_count_cuted_fields; - thd->variables.sql_mode= sql_mode; + thd->variables.sql_mode= orig_sql_mode; return result; } |