~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/oldlibdrizzle.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:
177
177
  {
178
178
    /* Check if we can continue without closing the connection */
179
179
 
180
 
    if(net.last_errno== CR_NET_PACKET_TOO_LARGE)
 
180
    if(net.last_errno== ER_NET_PACKET_TOO_LARGE)
181
181
      my_error(ER_NET_PACKET_TOO_LARGE, MYF(0));
182
182
    if (session->main_da.status() == Diagnostics_area::DA_ERROR)
183
183
      sendError(session->main_da.sql_errno(), session->main_da.message());
230
230
 
231
231
 
232
232
    default:
233
 
      /* Just drop connection for MySQL commands we don't support. */
234
 
      (*l_packet)[0]= (unsigned char) COM_QUIT;
 
233
      /* Respond with unknown command for MySQL commands we don't support. */
 
234
      (*l_packet)[0]= (unsigned char) COM_END;
235
235
      *packet_length= 1;
236
236
      break;
237
237
    }