~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Eric Day
  • Date: 2010-03-11 22:26:47 UTC
  • mto: This revision was merged to the branch mainline in revision 1357.
  • Revision ID: eday@oddments.org-20100311222647-3gpbp7fo513pvjci
Added prototest test case for mysql_protocol.

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
  case COM_INIT_DB:
197
197
  {
198
198
    status_var_increment(session->status_var.com_stat[SQLCOM_CHANGE_DB]);
 
199
    if (packet_length == 0)
 
200
    {
 
201
      my_message(ER_NO_DB_ERROR, ER(ER_NO_DB_ERROR), MYF(0));
 
202
      break;
 
203
    }
 
204
 
199
205
    string tmp(packet, packet_length);
200
206
 
201
207
    if (not mysql_change_db(session, tmp))