~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_create.h

  • Committer: lbieber
  • Date: 2010-10-06 16:34:16 UTC
  • mfrom: (1816.1.3 build)
  • Revision ID: lbieber@orisndriz08-20101006163416-ea0sl59qgpglk21y
Merge Monty - Change the requirement from either libinnodb to libhaildb. Also, tied it to version 2.2
Merge Andrew - fix bug 650935: remove --compress from all clients
Merge Andrew - fix bug 653471: Add -A to drizzle client
Merge Travis - 621861 = To change C structs to C++ classes in Drizzle

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
24
24
{
25
25
 
26
26
class select_create: public select_insert {
27
 
  Order *group;
 
27
  order_st *group;
28
28
  TableList *create_table;
29
29
  bool is_if_not_exists;
30
30
  HA_CREATE_INFO *create_info;
36
36
  DrizzleLock *m_lock;
37
37
  /* m_lock or session->extra_lock */
38
38
  DrizzleLock **m_plock;
39
 
  identifier::Table::const_reference identifier;
 
39
  TableIdentifier &identifier;
40
40
 
41
41
public:
42
42
  select_create (TableList *table_arg,
46
46
                 AlterInfo *alter_info_arg,
47
47
                 List<Item> &select_fields,enum_duplicates duplic, bool ignore,
48
48
                 TableList *select_tables_arg,
49
 
                 identifier::Table::const_reference identifier_arg)
 
49
                 TableIdentifier &identifier_arg)
50
50
    :select_insert (NULL, NULL, &select_fields, 0, 0, duplic, ignore),
51
51
    create_table(table_arg),
52
52
    is_if_not_exists(is_if_not_exists_arg),
60
60
  int prepare(List<Item> &list, Select_Lex_Unit *u);
61
61
 
62
62
  void store_values(List<Item> &values);
63
 
  void send_error(drizzled::error_t errcode,const char *err);
 
63
  void send_error(uint32_t errcode,const char *err);
64
64
  bool send_eof();
65
65
  void abort();
66
66
  virtual bool can_rollback_data() { return true; }
67
67
 
68
68
  // Needed for access from local class MY_HOOKS in prepare(), since session is proteted.
69
69
  const Session *get_session(void) { return session; }
70
 
  const HA_CREATE_INFO *get_create_info() { return create_info; }
 
70
  const HA_CREATE_INFO *get_create_info() { return create_info; };
71
71
  int prepare2(void) { return 0; }
72
72
};
73
73