~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2009-03-07 16:52:08 UTC
  • mto: This revision was merged to the branch mainline in revision 920.
  • Revision ID: brian@tangent.org-20090307165208-9km7nmnah7ntvw40
Comitting the removal of server code for LOAD DATA "LOCAL" INFILE

Show diffs side-by-side

added added

removed removed

Lines of Context:
1648
1648
  case SQLCOM_LOAD:
1649
1649
  {
1650
1650
    assert(first_table == all_tables && first_table != 0);
1651
 
    if (lex->local_file)
1652
 
    {
1653
 
      if (!(session->client_capabilities & CLIENT_LOCAL_FILES) ||
1654
 
          !opt_local_infile)
1655
 
      {
1656
 
        my_message(ER_NOT_ALLOWED_COMMAND, ER(ER_NOT_ALLOWED_COMMAND), MYF(0));
1657
 
        goto error;
1658
 
      }
1659
 
    }
1660
 
 
1661
1651
    res= mysql_load(session, lex->exchange, first_table, lex->field_list,
1662
 
                    lex->update_list, lex->value_list, lex->duplicates,
1663
 
                    lex->ignore, (bool) lex->local_file);
 
1652
                    lex->update_list, lex->value_list, lex->duplicates, lex->ignore);
1664
1653
    break;
1665
1654
  }
1666
1655