diff options
author | bell@sanja.is.com.ua <> | 2004-05-05 21:21:41 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2004-05-05 21:21:41 +0300 |
commit | c5c35c667ea626be7a0da7621db141e01485632c (patch) | |
tree | dc6fc7f740dabf7da6ce3e21af3673dc04bbd8fd /sql/sql_lex.cc | |
parent | e9492cca059564ca4980c37a56a3aaf68f427e18 (diff) | |
download | mariadb-git-c5c35c667ea626be7a0da7621db141e01485632c.tar.gz |
caching of queries with isammerge tables forbiden using general way
SQL_SELECT_LIMIT as default will be applied only for SELECT statement if there was not explicit LIMIT clause
correct table list passed to class constructor of select_update
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 19a6941fe32..e545e35921a 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -1023,6 +1023,7 @@ void st_select_lex::init_query() ref_pointer_array= 0; select_n_having_items= 0; prep_where= 0; + explicit_limit= 0; } void st_select_lex::init_select() @@ -1616,10 +1617,7 @@ void st_select_lex::print_limit(THD *thd, String *str) if (!thd) thd= current_thd; - if ((select_limit != thd->variables.select_limit && - this == &thd->lex->select_lex) || - (select_limit != HA_POS_ERROR && this != &thd->lex->select_lex) || - offset_limit != 0L) + if (explicit_limit) { str->append(" limit ", 7); char buff[20]; |