summaryrefslogtreecommitdiff
path: root/storage/connect
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2014-03-21 22:47:40 +0100
committerOlivier Bertrand <bertrandop@gmail.com>2014-03-21 22:47:40 +0100
commit70e865cc1934018e3a4fb14084fcbb19621b123d (patch)
tree0c7f5b2b468cb054e27b90266a3c8cbce669ccf0 /storage/connect
parent8a633c9447bf550514f981c99317e2fbcdafb4c1 (diff)
downloadmariadb-git-70e865cc1934018e3a4fb14084fcbb19621b123d.tar.gz
- Remove 2 compile warnings
modified: storage/connect/ha_connect.cc
Diffstat (limited to 'storage/connect')
-rw-r--r--storage/connect/ha_connect.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/storage/connect/ha_connect.cc b/storage/connect/ha_connect.cc
index 19bc63f7c37..bb090e925bc 100644
--- a/storage/connect/ha_connect.cc
+++ b/storage/connect/ha_connect.cc
@@ -4572,7 +4572,9 @@ int ha_connect::create(const char *name, TABLE *table_arg,
sprintf(g->Message, "Unsupported 0 length for column %s",
fp->field_name);
rc= HA_ERR_INTERNAL_ERROR;
- my_printf_error(ER_UNKNOWN_ERROR, g->Message, MYF(0));
+ my_printf_error(ER_UNKNOWN_ERROR,
+ "Unsupported 0 length for column %s",
+ MYF(0), fp->field_name);
DBUG_RETURN(rc);
} // endif fp
@@ -4591,15 +4593,16 @@ int ha_connect::create(const char *name, TABLE *table_arg,
sprintf(g->Message, "Unsupported type for column %s",
fp->field_name);
rc= HA_ERR_INTERNAL_ERROR;
- my_printf_error(ER_UNKNOWN_ERROR, g->Message, MYF(0));
+ my_printf_error(ER_UNKNOWN_ERROR, "Unsupported type for column %s",
+ MYF(0), fp->field_name);
DBUG_RETURN(rc);
break;
} // endswitch type
if ((fp)->real_maybe_null() && !IsTypeNullable(type)) {
my_printf_error(ER_UNKNOWN_ERROR,
- "Table type %s does not support nullable columns",
- MYF(0), options->type);
+ "Table type %s does not support nullable columns",
+ MYF(0), options->type);
DBUG_RETURN(HA_ERR_UNSUPPORTED);
} // endif !nullable