~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_insert.cc

  • Committer: Brian Aker
  • Date: 2010-08-17 01:34:55 UTC
  • mto: (1711.1.23 build)
  • mto: This revision was merged to the branch mainline in revision 1714.
  • Revision ID: brian@tangent.org-20100817013455-zx3nm7qilxvpwrgb
Style on structure cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
238
238
  uint32_t value_count;
239
239
  ulong counter = 1;
240
240
  uint64_t id;
241
 
  COPY_INFO info;
 
241
  CopyInfo info;
242
242
  Table *table= 0;
243
243
  List_iterator_fast<List_item> its(values_list);
244
244
  List_item *values;
694
694
     write_record()
695
695
      session   - thread context
696
696
      table - table to which record should be written
697
 
      info  - COPY_INFO structure describing handling of duplicates
 
697
      info  - CopyInfo structure describing handling of duplicates
698
698
              and which is used for counting number of records inserted
699
699
              and deleted.
700
700
 
713
713
*/
714
714
 
715
715
 
716
 
int write_record(Session *session, Table *table,COPY_INFO *info)
 
716
int write_record(Session *session, Table *table,CopyInfo *info)
717
717
{
718
718
  int error;
719
719
  char *key=0;
1435
1435
      items        in     List of items which should be used to produce rest
1436
1436
                          of fields for the table (corresponding fields will
1437
1437
                          be added to the end of alter_info->create_list)
1438
 
      lock         out    Pointer to the DRIZZLE_LOCK object for table created
 
1438
      lock         out    Pointer to the DrizzleLock object for table created
1439
1439
                          (or open temporary table) will be returned in this
1440
1440
                          parameter. Since this table is not included in
1441
1441
                          Session::lock caller is responsible for explicitly
1467
1467
                                      AlterInfo *alter_info,
1468
1468
                                      List<Item> *items,
1469
1469
                                      bool is_if_not_exists,
1470
 
                                      DRIZZLE_LOCK **lock,
 
1470
                                      DrizzleLock **lock,
1471
1471
                                      TableIdentifier &identifier)
1472
1472
{
1473
1473
  Table tmp_table;              // Used during 'CreateField()'
1613
1613
int
1614
1614
select_create::prepare(List<Item> &values, Select_Lex_Unit *u)
1615
1615
{
1616
 
  DRIZZLE_LOCK *extra_lock= NULL;
 
1616
  DrizzleLock *extra_lock= NULL;
1617
1617
  /*
1618
1618
    For replication, the CREATE-SELECT statement is written
1619
1619
    in two pieces: the first transaction messsage contains