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_lex.cc | |
parent | 4ad1e112f8ed61ceb407627c4e6defa157edfd44 (diff) | |
download | mariadb-git-44722151fdacd66e847a5084b5f2d06d3c3e9848.tar.gz |
Added new optino --sql-mode to mysqld.
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index a78fef62657..20bda932f2f 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -121,7 +121,7 @@ void lex_init(void) state_map[(uchar)'*']= (uchar) STATE_END_LONG_COMMENT; state_map[(uchar)'@']= (uchar) STATE_USER_END; state_map[(uchar) '`']= (uchar) STATE_USER_VARIABLE_DELIMITER; - if (thd_startup_options & OPTION_ANSI_MODE) + if (opt_sql_mode & MODE_ANSI_QUOTES) { state_map[(uchar) '"'] = STATE_USER_VARIABLE_DELIMITER; } @@ -149,7 +149,7 @@ LEX *lex_start(THD *thd, uchar *buf,uint length) lex->ftfunc_list.empty(); lex->convert_set=(lex->thd=thd)->convert_set; lex->yacc_yyss=lex->yacc_yyvs=0; - lex->ignore_space=test(thd->client_capabilities & CLIENT_IGNORE_SPACE); + lex->ignore_space=test(thd->sql_mode & MODE_IGNORE_SPACE); return lex; } |