summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <jcole@tetra.bedford.progress.com>2000-11-11 12:27:34 -0600
committerunknown <jcole@tetra.bedford.progress.com>2000-11-11 12:27:34 -0600
commitc0f040274d2c452c5bada8b3adb623d98c149b2e (patch)
tree668d3864fb0236ab961658a071aed0dd51ae8ac5 /sql/sql_parse.cc
parent1acd5898cec6c07b8b28dd345f152dc0fcceaa3b (diff)
downloadmariadb-git-c0f040274d2c452c5bada8b3adb623d98c149b2e.tar.gz
Added ALTER TABLE ... ORDER BY ...
Docs/manual.texi: Added documentation for ALTER TABLE ... ORDER BY ... sql/mysql_priv.h: Exported make_unireg_sortorder Exported setup_order sql/sql_base.cc: Changes for ALTER TABLE ... ORDER BY ... sql/sql_parse.cc: Changes for ALTER TABLE ... ORDER BY ... sql/sql_select.cc: Moved make_unireg_sortorder and setup_order prototypes to mysql_priv.h and made them non-static so that they can be used elsewhere. Needed for ALTER TABLE ... ORDER BY ...
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 905b8a2af5e..066885ef30a 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -1158,6 +1158,7 @@ mysql_execute_command(void)
&lex->create_info,
tables, lex->create_list,
lex->key_list, lex->drop_list, lex->alter_list,
+ (ORDER *) lex->order_list.first,
lex->drop_primary, lex->duplicates);
break;
}
@@ -1262,6 +1263,7 @@ mysql_execute_command(void)
res= mysql_alter_table(thd, NullS, NullS, &create_info,
tables, lex->create_list,
lex->key_list, lex->drop_list, lex->alter_list,
+ (ORDER *) 0,
0,DUP_ERROR);
}
else