~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

Extracted the ROLLBACK command into a class with its own implementation
files and removed the corresponding case label from the switch statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1153
1153
      goto error;
1154
1154
    session->my_ok();
1155
1155
    break;
1156
 
  case SQLCOM_ROLLBACK:
1157
 
    if (! session->endTransaction(lex->tx_release ? ROLLBACK_RELEASE : lex->tx_chain ? ROLLBACK_AND_CHAIN : ROLLBACK))
1158
 
      goto error;
1159
 
    session->my_ok();
1160
 
    break;
1161
1156
  case SQLCOM_RELEASE_SAVEPOINT:
1162
1157
  {
1163
1158
    SAVEPOINT *sv;