diff options
author | jani@rhols221.adsl.netsonic.fi <> | 2003-01-16 02:04:50 +0200 |
---|---|---|
committer | jani@rhols221.adsl.netsonic.fi <> | 2003-01-16 02:04:50 +0200 |
commit | 94cc7d751e93874f45f028cbee9f86bd03403404 (patch) | |
tree | 5910d263a2db0a8c8e0feac4478908fc202a92db /sql/item_func.cc | |
parent | 5743f94b57b55ee463edb0ac36727f01f1d3e403 (diff) | |
download | mariadb-git-94cc7d751e93874f45f028cbee9f86bd03403404.tar.gz |
Added support sql_mode, which can be used to produce various outputs
of SHOW CREATE TABLE 'name'. Depending on the mode, the output can
be compatible with various databases, including earlier versions of
MySQL
.
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r-- | sql/item_func.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc index 62cf4c0d291..d489ff1055d 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -394,7 +394,7 @@ void Item_func_minus::fix_length_and_dec() { Item_num_op::fix_length_and_dec(); if (unsigned_flag && - (current_thd->sql_mode & MODE_NO_UNSIGNED_SUBTRACTION)) + (current_thd->variables.sql_mode & MODE_NO_UNSIGNED_SUBTRACTION)) unsigned_flag=0; } |