Commit 64166ebf authored by anozdrin@mysql.com's avatar anozdrin@mysql.com

1. Fix compilation on Windows;

2. Fix trigger.test.
parent b5517223
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#include <stdarg.h> #include <stdarg.h>
#include "portability.h" /* for vsnprintf() on Windows. */
/* /*
TODO: TODO:
- add flexible header support - add flexible header support
......
...@@ -1412,8 +1412,8 @@ bool Table_triggers_list::change_table_name(THD *thd, const char *db, ...@@ -1412,8 +1412,8 @@ bool Table_triggers_list::change_table_name(THD *thd, const char *db,
} }
if (table.triggers) if (table.triggers)
{ {
LEX_STRING old_table_name= { (char *) STRING_WITH_LEN(old_table) }; LEX_STRING old_table_name= { (char *) old_table, strlen(old_table) };
LEX_STRING new_table_name= { (char *) STRING_WITH_LEN(new_table) }; LEX_STRING new_table_name= { (char *) new_table, strlen(new_table) };
/* /*
Since triggers should be in the same schema as their subject tables Since triggers should be in the same schema as their subject tables
moving table with them between two schemas raises too many questions. moving table with them between two schemas raises too many questions.
......
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