~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/client.c

  • Committer: Brian Aker
  • Date: 2008-07-15 06:45:16 UTC
  • Revision ID: brian@tangent.org-20080715064516-fnbq7kowh7w57bxj
Merge Monty's code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
411
411
  NET *net= &mysql->net;
412
412
  my_bool result= 1;
413
413
  init_sigpipe_variables
414
 
  my_bool stmt_skip= FALSE;
 
414
  my_bool stmt_skip= false;
415
415
  DBUG_ENTER("cli_advanced_command");
416
416
 
417
417
  /* Don't give sigpipe errors if the client doesn't want them */
553
553
        (*mysql->methods->flush_use_result)(mysql);
554
554
        mysql->status=MYSQL_STATUS_READY;
555
555
        if (mysql->unbuffered_fetch_owner)
556
 
          *mysql->unbuffered_fetch_owner= TRUE;
 
556
          *mysql->unbuffered_fetch_owner= true;
557
557
      }
558
558
    }
559
559
    free_rows(result->data);
758
758
          options->client_flag|= CLIENT_MULTI_STATEMENTS | CLIENT_MULTI_RESULTS;
759
759
          break;
760
760
        case 30: /* secure-auth */
761
 
          options->secure_auth= TRUE;
 
761
          options->secure_auth= true;
762
762
          break;
763
763
        case 31: /* report-data-truncation */
764
764
          options->report_data_truncation= opt_arg ? test(atoi(opt_arg)) : 1;
1104
1104
#endif
1105
1105
 
1106
1106
  mysql->options.methods_to_use= MYSQL_OPT_GUESS_CONNECTION;
1107
 
  mysql->options.report_data_truncation= TRUE;  /* default */
 
1107
  mysql->options.report_data_truncation= true;  /* default */
1108
1108
 
1109
1109
  /*
1110
1110
    By default we don't reconnect because it could silently corrupt data (after
1526
1526
    set_mysql_error(mysql, CR_OUT_OF_MEMORY, unknown_sqlstate);
1527
1527
    goto error;
1528
1528
  }
1529
 
  vio_keepalive(net->vio,TRUE);
 
1529
  vio_keepalive(net->vio,true);
1530
1530
 
1531
1531
  /* If user set read_timeout, let it override the default */
1532
1532
  if (mysql->options.read_timeout)