diff options
author | jani@hynda.mysql.fi <> | 2001-08-09 18:51:38 +0300 |
---|---|---|
committer | jani@hynda.mysql.fi <> | 2001-08-09 18:51:38 +0300 |
commit | 44722151fdacd66e847a5084b5f2d06d3c3e9848 (patch) | |
tree | fae4985713a526cf99cd5de3f34e3e2cc10f5463 /sql/sql_parse.cc | |
parent | 4ad1e112f8ed61ceb407627c4e6defa157edfd44 (diff) | |
download | mariadb-git-44722151fdacd66e847a5084b5f2d06d3c3e9848.tar.gz |
Added new optino --sql-mode to mysqld.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 87fbed47ef1..1c8c917babe 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -412,6 +412,8 @@ check_connections(THD *thd) return(ER_OUT_OF_RESOURCES); thd->client_capabilities=uint2korr(net->read_pos); + if (thd->client_capabilities & CLIENT_IGNORE_SPACE) + thd->sql_mode|= MODE_IGNORE_SPACE; #ifdef HAVE_OPENSSL DBUG_PRINT("info", ("pkt_len:%d, client capabilities: %d", @@ -538,8 +540,6 @@ pthread_handler_decl(handle_one_connection,arg) thd->options |= OPTION_BIG_SELECTS; if (thd->client_capabilities & CLIENT_COMPRESS) net->compress=1; // Use compression - if (thd->options & OPTION_ANSI_MODE) - thd->client_capabilities|=CLIENT_IGNORE_SPACE; thd->proc_info=0; // Remove 'login' thd->command=COM_SLEEP; |