diff options
author | unknown <bell@sanja.is.com.ua> | 2004-08-31 11:58:45 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-08-31 11:58:45 +0300 |
commit | d3423ca699ef20de336cbed8574df63f1970d278 (patch) | |
tree | 093226f954ab64443f59cb0f9061b853763aa75a /sql/table.h | |
parent | 6e314e047d0acd336954df032cb519101889bd0c (diff) | |
download | mariadb-git-d3423ca699ef20de336cbed8574df63f1970d278.tar.gz |
ORDER clause printing fixed (BUG#5156)
mysql-test/r/subselect.result:
ORDER clause printing fixed
mysql-test/r/view.result:
order by refers on integer field
mysql-test/t/view.test:
order by refers on integer field
sql/sql_lex.cc:
ORDER clause printing fixed
sql/sql_parse.cc:
fields for correct ORDER printing added
sql/sql_select.cc:
fields for correct ORDER printing added
sql/table.h:
fields for correct ORDER printing added
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h index dd41ab79b7b..68c7febb5b6 100644 --- a/sql/table.h +++ b/sql/table.h @@ -29,9 +29,12 @@ typedef struct st_order { Item **item; /* Point at item in select fields */ Item *item_ptr; /* Storage for initial item */ Item **item_copy; /* For SPs; the original item ptr */ + int counter; /* position in SELECT list, correct + only if counter_used is true*/ bool asc; /* true if ascending */ bool free_me; /* true if item isn't shared */ bool in_field_list; /* true if in select field list */ + bool counter_used; /* parapeter was counter of columns */ Field *field; /* If tmp-table group */ char *buff; /* If tmp-table group */ table_map used,depend_map; |