Commit 8bd158c1 authored by Olivier Bertrand's avatar Olivier Bertrand

- Better message for CONNECT unspported commands

modified:
  storage/connect/ha_connect.cc
parent 5d75457f
......@@ -3008,7 +3008,8 @@ int ha_connect::external_lock(THD *thd, int lock_type)
break;
default:
printf("Unsupported sql_command=%d", thd_sql_command(thd));
sprintf(g->Message, "Unsupported sql_command=%d", thd_sql_command(thd));
strcpy(g->Message, "CONNECT Unsupported command");
my_message(ER_NOT_ALLOWED_COMMAND, g->Message, MYF(0));
DBUG_RETURN(HA_ERR_INTERNAL_ERROR);
break;
} // endswitch newmode
......@@ -3046,7 +3047,8 @@ int ha_connect::external_lock(THD *thd, int lock_type)
break;
default:
printf("Unsupported sql_command=%d", thd_sql_command(thd));
sprintf(g->Message, "Unsupported sql_command=%d", thd_sql_command(thd));
strcpy(g->Message, "CONNECT Unsupported command");
my_message(ER_NOT_ALLOWED_COMMAND, g->Message, MYF(0));
DBUG_RETURN(HA_ERR_INTERNAL_ERROR);
break;
} // endswitch newmode
......
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