1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixed BUG#2564: SHOW CREATE inconsistent W.R.T ANSI_QUOTES.

It's not possible to quote the definition according to the current sql_mode
setting, so instead we use the setting stored with the SP (that's how it's
parsed anyway), and show this setting in the SHOW CREATE output.
This commit is contained in:
pem@mysql.comhem.se
2004-06-09 14:19:43 +02:00
parent e3132d9a7c
commit cc897576fe
5 changed files with 181 additions and 56 deletions

View File

@ -85,6 +85,7 @@ public:
my_bool m_multi_results; // TRUE if a procedure with SELECT(s)
uint m_old_cmq; // Old CLIENT_MULTI_QUERIES value
st_sp_chistics *m_chistics;
ulong m_sql_mode; // For SHOW CREATE
#if NOT_USED_NOW
// QQ We're not using this at the moment.
List<char *> m_calls; // Called procedures.
@ -194,7 +195,7 @@ public:
void set_info(char *definer, uint definerlen,
longlong created, longlong modified,
st_sp_chistics *chistics);
st_sp_chistics *chistics, ulong sql_mode);
void reset_thd_mem_root(THD *thd);