~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/mysql_protocol.cc

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
ClientMySQLProtocol::~ClientMySQLProtocol()
104
104
{
105
105
  if (net.vio)
106
 
    vio_close(net.vio);
 
106
    net.vio->close();
107
107
}
108
108
 
109
109
int ClientMySQLProtocol::getFileDescriptor(void)
206
206
      return false;                       // We have to close it.
207
207
 
208
208
    net.error= 0;
209
 
    *packet_length= 0;
210
 
    return true;
211
209
  }
212
210
 
213
211
  *l_packet= (char*) net.read_pos;
420
418
 
421
419
  drizzleclient_net_write_command(&net,(unsigned char) 255, (unsigned char*) "", 0, (unsigned char*) err, length);
422
420
 
 
421
  drizzleclient_net_flush(&net);
 
422
 
423
423
  session->main_da.can_overwrite_status= false;
424
424
}
425
425
 
884
884
  uint32_t pointer_seed;
885
885
  memcpy(&pointer_seed, &pointer, 4);
886
886
  uint32_t random1= (seed + pointer_seed) % random_max;
887
 
  uint32_t random2= (seed + session->variables.pseudo_thread_id + net.vio->sd) % random_max;
 
887
  uint32_t random2= (seed + session->variables.pseudo_thread_id + net.vio->get_fd()) % random_max;
888
888
 
889
889
  for (char *end= scramble + SCRAMBLE_LENGTH; scramble != end; scramble++)
890
890
  {
1103
1103
 
1104
1104
    if (status_var_ptr->type == SHOW_FUNC)
1105
1105
    {
1106
 
      ((mysql_show_var_func)((st_show_var_func_container *)status_var_ptr->value)->func)(&tmp, buff);
 
1106
      ((drizzle_show_var_func)((st_show_var_func_container *)status_var_ptr->value)->func)(&tmp, buff);
1107
1107
      value= buff;
1108
1108
      type= tmp.type;
1109
1109
    }