~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Grant Limberg
  • Date: 2008-08-12 21:13:01 UTC
  • mto: (322.1.1 codestyle)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: grant@glsoftware.net-20080812211301-ym3wsowelkgp16s2
renamed all instances of MYSQL_ to DRIZZLE_

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
 
#define MYSQL_LEX 1
 
16
#define DRIZZLE_LEX 1
17
17
#include <drizzled/server_includes.h>
18
18
#include "sql_repl.h"
19
19
#include "rpl_filter.h"
118
118
    LEX *lex= thd->lex;
119
119
    thd->options|= OPTION_BEGIN;
120
120
    thd->server_status|= SERVER_STATUS_IN_TRANS;
121
 
    if (lex->start_transaction_opt & MYSQL_START_TRANS_OPT_WITH_CONS_SNAPSHOT)
 
121
    if (lex->start_transaction_opt & DRIZZLE_START_TRANS_OPT_WITH_CONS_SNAPSHOT)
122
122
      error= ha_start_consistent_snapshot(thd);
123
123
  }
124
124
  return error;
846
846
    uint opt_command= uint2korr(packet);
847
847
 
848
848
    switch (opt_command) {
849
 
    case (int) MYSQL_OPTION_MULTI_STATEMENTS_ON:
 
849
    case (int) DRIZZLE_OPTION_MULTI_STATEMENTS_ON:
850
850
      thd->client_capabilities|= CLIENT_MULTI_STATEMENTS;
851
851
      my_eof(thd);
852
852
      break;
853
 
    case (int) MYSQL_OPTION_MULTI_STATEMENTS_OFF:
 
853
    case (int) DRIZZLE_OPTION_MULTI_STATEMENTS_OFF:
854
854
      thd->client_capabilities&= ~CLIENT_MULTI_STATEMENTS;
855
855
      my_eof(thd);
856
856
      break;