~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_client.cc

  • Committer: Monty Taylor
  • Date: 2009-01-09 07:02:24 UTC
  • mto: (779.1.2 devel)
  • mto: This revision was merged to the branch mainline in revision 784.
  • Revision ID: mordred@inaugust.com-20090109070224-prwl5p52mfql3zfw
Split out readline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
extern struct system_variables global_system_variables;
23
23
 
24
24
/*
25
 
  Function called by drizzleclient_net_init() to set some check variables
 
25
  Function called by my_net_init() to set some check variables
26
26
*/
27
27
 
28
28
extern "C" {
29
 
void drizzleclient_net_local_init(NET *net)
 
29
void my_net_local_init(NET *net)
30
30
{
31
 
  net->max_packet=   (uint32_t) global_system_variables.net_buffer_length;
32
 
 
33
 
  drizzleclient_net_set_read_timeout(net, (uint32_t)global_system_variables.net_read_timeout);
34
 
  drizzleclient_net_set_write_timeout(net,
35
 
                           (uint32_t)global_system_variables.net_write_timeout);
36
 
 
37
 
  net->retry_count=  (uint32_t) global_system_variables.net_retry_count;
 
31
  net->max_packet=   (uint) global_system_variables.net_buffer_length;
 
32
 
 
33
  my_net_set_read_timeout(net, (uint)global_system_variables.net_read_timeout);
 
34
  my_net_set_write_timeout(net,
 
35
                           (uint)global_system_variables.net_write_timeout);
 
36
 
 
37
  net->retry_count=  (uint) global_system_variables.net_retry_count;
38
38
  net->max_packet_size= cmax(global_system_variables.net_buffer_length,
39
39
                            global_system_variables.max_allowed_packet);
40
40
}