summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2002-11-05 01:10:05 +0200
committerbell@sanja.is.com.ua <>2002-11-05 01:10:05 +0200
commite0f14c271686376cf31a7d942966d1368826ad52 (patch)
tree0403a09196c2307bbda56b3647ff011ef1cd8746 /sql/sql_lex.h
parent45f098bf60deda10643bcaef7324581b607f9ae1 (diff)
downloadmariadb-git-e0f14c271686376cf31a7d942966d1368826ad52.tar.gz
move similar code to inline function
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r--sql/sql_lex.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index b40cbf08877..ea944ef34c8 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -364,7 +364,12 @@ public:
thr_lock_type flags= TL_UNLOCK,
List<String> *use_index= 0,
List<String> *ignore_index= 0);
-
+ inline void init_order()
+ {
+ order_list.elements= 0;
+ order_list.first= 0;
+ order_list.next= (byte**) &order_list.first;
+ }
friend void mysql_init_query(THD *thd);
};