~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzle.cc

  • Committer: Robert Klahn
  • Date: 2009-07-20 18:10:47 UTC
  • mto: (1093.1.23 captain)
  • mto: This revision was merged to the branch mainline in revision 1099.
  • Revision ID: rklahn@quad-20090720181047-aa6oqjuwzy7vju2q
Changes from additional code review feedback

Show diffs side-by-side

added added

removed removed

Lines of Context:
1240
1240
 
1241
1241
  if (status.batch && !status.line_buff)
1242
1242
  {
1243
 
    status.line_buff= new(std::nothrow) LineBuffer(opt_max_input_line+512, stdin);
 
1243
    status.line_buff= new(std::nothrow) LineBuffer(opt_max_input_line, stdin);
1244
1244
    if (status.line_buff == NULL)
1245
1245
    {
1246
1246
      free_defaults(defaults_argv);
1695
1695
    status.batch= 1;
1696
1696
    status.add_to_history= 0;
1697
1697
    if (status.line_buff == NULL)
1698
 
      status.line_buff= new(std::nothrow) LineBuffer(opt_max_input_line+512,NULL);
 
1698
      status.line_buff= new(std::nothrow) LineBuffer(opt_max_input_line,NULL);
1699
1699
    if (status.line_buff == NULL)
1700
1700
    {
1701
1701
      my_end(0);
3679
3679
    return put_info(buff, INFO_ERROR, 0 ,0);
3680
3680
  }
3681
3681
 
3682
 
  line_buff= new(std::nothrow) LineBuffer(opt_max_input_line+512,sql_file);
 
3682
  line_buff= new(std::nothrow) LineBuffer(opt_max_input_line,sql_file);
3683
3683
  if (line_buff == NULL)
3684
3684
  {
3685
3685
    fclose(sql_file);