summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-09-17 14:55:27 +0300
committerunknown <bell@sanja.is.com.ua>2003-09-17 14:55:27 +0300
commitcf24f5acd76d0d374c167e942e500678a5d5e81e (patch)
tree5a1394b9d5867b79dbdb6ed5bb34e5db1db450e8 /sql/sql_parse.cc
parent34fc9b2b568ee9cac49f208d6b046f60907ec544 (diff)
parent04d1b04eddc9f9668b25ad9410494d09b79ad35f (diff)
downloadmariadb-git-cf24f5acd76d0d374c167e942e500678a5d5e81e.tar.gz
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-union-4.1 sql/sql_parse.cc: Auto merged
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 370ccd3c38b..42f8bb16bcd 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -1723,6 +1723,10 @@ mysql_execute_command(THD *thd)
break; // Error message is given
}
+ /*
+ In case of single SELECT unit->global_parameters points on first SELECT
+ TODO: move counters to SELECT_LEX
+ */
unit->offset_limit_cnt= (ha_rows) unit->global_parameters->offset_limit;
unit->select_limit_cnt= (ha_rows) (unit->global_parameters->select_limit+
unit->global_parameters->offset_limit);