From ead6f225a426c43b181e3dee2dfebad40df4f163 Mon Sep 17 00:00:00 2001 From: "bell@sanja.is.com.ua" <> Date: Wed, 8 May 2002 23:14:40 +0300 Subject: new SELECT_LEX structures used for storing global ORDER BY, global LIMIT & limit counters --- sql/sql_lex.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sql/sql_lex.cc') diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 3b17c8d498a..bfa06353e30 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -895,14 +895,16 @@ void st_select_lex_node::init_select() order_list.elements= 0; order_list.first= 0; order_list.next= (byte**) &order_list.first; - select_limit= offset_limit= 0; + select_limit= HA_POS_ERROR; + offset_limit= 0; } void st_select_lex_unit::init_query() { st_select_lex_node::init_query(); global_parameters= this; - select_limit_cnt= offset_limit_cnt= 0; + select_limit_cnt= HA_POS_ERROR; + offset_limit_cnt= 0; } void st_select_lex::init_query() -- cgit v1.2.1