~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/start_transaction.cc

  • Committer: Brian Aker
  • Date: 2011-01-26 18:29:34 UTC
  • mto: (2122.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2123.
  • Revision ID: brian@tangent.org-20110126182934-hsboi3ab5105on1g
fix test case along with the error message for TIME.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include <config.h>
 
21
#include "config.h"
22
22
#include <drizzled/show.h>
23
23
#include <drizzled/session.h>
24
24
#include <drizzled/statement/start_transaction.h>
28
28
 
29
29
bool statement::StartTransaction::execute()
30
30
{
31
 
  if (getSession()->inTransaction())
32
 
  {
33
 
    push_warning_printf(getSession(), DRIZZLE_ERROR::WARN_LEVEL_WARN,
34
 
                        ER_TRANSACTION_ALREADY_STARTED,
35
 
                        ER(ER_TRANSACTION_ALREADY_STARTED));
36
 
    return false;
37
 
  }
38
 
 
39
31
  if (getSession()->transaction.xid_state.xa_state != XA_NOTR)
40
32
  {
41
33
    my_error(ER_XAER_RMFAIL, MYF(0),