~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/start_transaction.h

  • Committer: Stewart Smith
  • Date: 2011-02-07 08:29:23 UTC
  • mto: (2154.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2155.
  • Revision ID: stewart@flamingspork.com-20110207082923-li4wy2hne4mnnych
be sure to start a transaction with a startTransaction call on the first statement when autocommit is OFF. The only statements that DO NOT do this are a) DDL and b) SELECT without a table (e.g. SELECT DATABASE() and SHOW STATUS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
  }
45
45
 
46
46
  bool execute();
 
47
 
 
48
  /* we kinda cheat here as START TRANSACTION will start a transaction,
 
49
     so having an autocommit=off implicit start txn doesn't make sense. */
 
50
  bool isTransactional()
 
51
  {
 
52
    return false;
 
53
  }
47
54
};
48
55
 
49
56
} /* namespace statement */