diff options
author | unknown <bell@sanja.is.com.ua> | 2004-05-13 23:47:20 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-05-13 23:47:20 +0300 |
commit | fd51cf47a9fd61dc1102cacfcb1e77cb1f19d702 (patch) | |
tree | cedf6b9de442e03cc92b7d8d36e141e86ceddc58 /sql/sql_select.cc | |
parent | d8522613d5395b63d2bd46ee6a0955bac78ed117 (diff) | |
download | mariadb-git-fd51cf47a9fd61dc1102cacfcb1e77cb1f19d702.tar.gz |
fixed flags of printed query
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index c330d1e6b54..f9cd5bcbf86 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -9370,21 +9370,21 @@ void st_select_lex::print(THD *thd, String *str) //options if (options & SELECT_STRAIGHT_JOIN) str->append("straight_join ", 14); - if ((thd->lex->lock_option & TL_READ_HIGH_PRIORITY) && + if ((thd->lex->lock_option == TL_READ_HIGH_PRIORITY) && (this == &thd->lex->select_lex)) str->append("high_priority ", 14); if (options & SELECT_DISTINCT) str->append("distinct ", 9); if (options & SELECT_SMALL_RESULT) - str->append("small_result ", 13); + str->append("sql_small_result ", 17); if (options & SELECT_BIG_RESULT) - str->append("big_result ", 11); + str->append("sql_big_result ", 15); if (options & OPTION_BUFFER_RESULT) - str->append("buffer_result ", 14); + str->append("sql_buffer_result ", 18); if (options & OPTION_FOUND_ROWS) - str->append("calc_found_rows ", 16); + str->append("sql_calc_found_rows ", 20); if (!thd->lex->safe_to_cache_query) - str->append("no_cache ", 9); + str->append("sql_no_cache ", 13); if (options & OPTION_TO_QUERY_CACHE) str->append("cache ", 6); |