Commit 44170cb9 authored by unknown's avatar unknown

sql_yacc.yy => CREATE TABLE (... COLLECTION ... ) syntax


sql/item_func.h:
  cosmetic changes
sql/sql_parse.cc:
  cosmetic changes
sql/sql_yacc.yy:
  CREATE TABLE (... COLLECTION ... ) syntax
parent ada11839
...@@ -829,7 +829,7 @@ public: ...@@ -829,7 +829,7 @@ public:
}; };
/* SerG: for fulltext search */ /* for fulltext search */
#include <ft_global.h> #include <ft_global.h>
class Item_func_match :public Item_real_func class Item_func_match :public Item_real_func
...@@ -855,4 +855,3 @@ public: ...@@ -855,4 +855,3 @@ public:
double val(); double val();
longlong val_int() { return val()!=0.0; } longlong val_int() { return val()!=0.0; }
}; };
...@@ -1132,7 +1132,7 @@ mysql_execute_command(void) ...@@ -1132,7 +1132,7 @@ mysql_execute_command(void)
break; break;
} }
#endif #endif
case SQLCOM_SHOW_CREATE: case SQLCOM_SHOW_CREATE: /* SerG:show */
{ {
if(! tables->db) if(! tables->db)
tables->db = thd->db; tables->db = thd->db;
...@@ -1389,7 +1389,7 @@ mysql_execute_command(void) ...@@ -1389,7 +1389,7 @@ mysql_execute_command(void)
break; break;
} }
#endif #endif
case SQLCOM_SHOW_FIELDS: case SQLCOM_SHOW_FIELDS: /* SerG:show */
#ifdef DONT_ALLOW_SHOW_COMMANDS #ifdef DONT_ALLOW_SHOW_COMMANDS
send_error(&thd->net,ER_NOT_ALLOWED_COMMAND); /* purecov: inspected */ send_error(&thd->net,ER_NOT_ALLOWED_COMMAND); /* purecov: inspected */
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
...@@ -1415,7 +1415,7 @@ mysql_execute_command(void) ...@@ -1415,7 +1415,7 @@ mysql_execute_command(void)
break; break;
} }
#endif #endif
case SQLCOM_SHOW_KEYS: case SQLCOM_SHOW_KEYS: /* SerG:show */
#ifdef DONT_ALLOW_SHOW_COMMANDS #ifdef DONT_ALLOW_SHOW_COMMANDS
send_error(&thd->net,ER_NOT_ALLOWED_COMMAND); /* purecov: inspected */ send_error(&thd->net,ER_NOT_ALLOWED_COMMAND); /* purecov: inspected */
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
......
...@@ -961,6 +961,7 @@ delete_option: ...@@ -961,6 +961,7 @@ delete_option:
key_type: key_type:
opt_constraint PRIMARY_SYM KEY_SYM { $$= Key::PRIMARY; } opt_constraint PRIMARY_SYM KEY_SYM { $$= Key::PRIMARY; }
| key_or_index { $$= Key::MULTIPLE; } | key_or_index { $$= Key::MULTIPLE; }
| COLLECTION { $$= Key::FULLTEXT; }
| opt_constraint UNIQUE_SYM { $$= Key::UNIQUE; } | opt_constraint UNIQUE_SYM { $$= Key::UNIQUE; }
| opt_constraint UNIQUE_SYM key_or_index { $$= Key::UNIQUE; } | opt_constraint UNIQUE_SYM key_or_index { $$= Key::UNIQUE; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment