[Commits] 76a0ed2: alter_table.test bug fixed.

Alexey Botchkov holyfoot at askmonty.org
Mon Sep 12 12:12:45 EEST 2016


revision-id: 76a0ed2e03c6ae1ff791534e742c812d5e83ba63 (mariadb-10.1.8-246-g76a0ed2)
parent(s): 3630a00e258273ada7f783a514600aafcd3f13f9
committer: Alexey Botchkov
timestamp: 2016-09-12 13:11:35 +0400
message:

alter_table.test bug fixed.

        Wrong argument for the my_error function fixed.

---
 sql/sql_table.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 5a3b9d2..6f0ec66 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -4213,7 +4213,7 @@ mysql_prepare_create_table(THD *thd, HA_CREATE_INFO *create_info,
               my_strcasecmp(system_charset_info,
                             check->name.str, dup_check->name.str) == 0)
           {
-            my_error(ER_DUP_CONSTRAINT_NAME, MYF(0), "CHECK", check->name);
+            my_error(ER_DUP_CONSTRAINT_NAME, MYF(0), "CHECK", check->name.str);
             DBUG_RETURN(TRUE);
           }
         }


More information about the commits mailing list