mirror of
https://github.com/MariaDB/server.git
synced 2026-04-27 10:45:30 +02:00
MDEV-6409 CREATE VIEW replication problem if error occurs in mysql_register_view
fix by Sriram Patil
This commit is contained in:
parent
c104965746
commit
1907bf042a
3 changed files with 41 additions and 3 deletions
|
|
@ -39,8 +39,7 @@
|
|||
|
||||
const LEX_STRING view_type= { C_STRING_WITH_LEN("VIEW") };
|
||||
|
||||
static int mysql_register_view(THD *thd, TABLE_LIST *view,
|
||||
enum_view_create_mode mode);
|
||||
static int mysql_register_view(THD *, TABLE_LIST *, enum_view_create_mode);
|
||||
|
||||
/*
|
||||
Make a unique name for an anonymous view column
|
||||
|
|
@ -670,7 +669,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
|
|||
|
||||
res= mysql_register_view(thd, view, mode);
|
||||
|
||||
if (mysql_bin_log.is_open())
|
||||
if (!res && mysql_bin_log.is_open())
|
||||
{
|
||||
String buff;
|
||||
const LEX_STRING command[3]=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue