summaryrefslogtreecommitdiff
path: root/sql/set_var.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2005-07-29 23:39:08 +0300
committerunknown <bell@sanja.is.com.ua>2005-07-29 23:39:08 +0300
commit675c4bb48c584dd263934f3774f9e7438a376203 (patch)
treeb93986cd6089165725d889eb2843f7b1e8480a4a /sql/set_var.cc
parent21189de35f48f97c457a4cc8427cbf5c14b3251f (diff)
downloadmariadb-git-675c4bb48c584dd263934f3774f9e7438a376203.tar.gz
Added sql_mode saving to mysql_dump (BUG#5891, part 2)
client/client_priv.h: add OPT_ for --trigger parameter client/mysqldump.c: fixed short simbol for trigger fixed lines break for more compiler compatibility added sql_mode output added comments made protection of trigger and view restoring commands from execution by old versions of mysql mysql-test/r/mysqldump.result: changed test, to test sql_mode mysql-test/r/sp.result: now sql_mode preserved in SP mysql-test/t/mysqldump.test: changed test, to test sql_mode mysql-test/t/sp.test: now sql_mode preserved in SP sql/set_var.cc: fixed comment
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r--sql/set_var.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc
index d3f3f62c259..20d383d0025 100644
--- a/sql/set_var.cc
+++ b/sql/set_var.cc
@@ -3199,10 +3199,13 @@ bool sys_var_thd_table_type::update(THD *thd, set_var *var)
/*
Make string representation of mode
- SINOPSYS
- thd thread handler
- val sql_mode value
- len pointer on length of string
+ SYNOPSIS
+ thd in thread handler
+ val in sql_mode value
+ len out pointer on length of string
+
+ RETURN
+ pointer to string with sql_mode representation
*/
byte *sys_var_thd_sql_mode::symbolic_mode_representation(THD *thd, ulong val,