~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-14 15:59:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2407.
  • Revision ID: olafvdspek@gmail.com-20110814155954-zf2yu0ji8bwghnl9
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
 
91
91
namespace
92
92
{
93
 
 
94
 
static const std::string command_name[COM_END+1]={
95
 
  "Sleep",
96
 
  "Quit",
97
 
  "Init DB",
98
 
  "Query",
99
 
  "Shutdown",
100
 
  "Connect",
101
 
  "Ping",
102
 
  "Kill",
103
 
  "Error"  // Last command number
104
 
};
105
 
 
 
93
  static const std::string command_name[]=
 
94
  {
 
95
    "Sleep",
 
96
    "Quit",
 
97
    "Init DB",
 
98
    "Query",
 
99
    "Shutdown",
 
100
    "Connect",
 
101
    "Ping",
 
102
    "Kill",
 
103
    "Error"  // Last command number
 
104
  };
106
105
}
107
106
 
108
 
const char *xa_state_names[]={
 
107
const char *xa_state_names[]=
 
108
{
109
109
  "NON-EXISTING", "ACTIVE", "IDLE", "PREPARED"
110
110
};
111
111
 
 
112
 
112
113
/**
113
114
  Mark all commands that somehow changes a table.
114
115
 
191
192
                      const char* packet, uint32_t packet_length)
192
193
{
193
194
  bool error= false;
194
 
  Query_id &query_id= Query_id::get_query_id();
 
195
  Query_id& query_id= Query_id::get_query_id();
195
196
 
196
197
  DRIZZLE_COMMAND_START(session->thread_id, command);
197
198