~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_header_assert.m4

Merge Revision revid:marko.makela@oracle.com-20100514133144-fe0l0b89tea4x4uu from MySQL InnoDB

Original revid:marko.makela@oracle.com-20100514133144-fe0l0b89tea4x4uu

Original Authors: Marko Mkel <marko.makela@oracle.com>
Original commit message:
Merge from mysql-5.1-innodb:

Post-merge fixes: Remove the MYSQL_VERSION_ID checks, because they only
apply to the InnoDB Plugin. Fix potential race condition accessing
trx->op_info and trx->detailed_error.
------------------------------------------------------------
revno: 3466
revision-id: marko.makela@oracle.com-20100514130815-ym7j7cfu88ro6km4
parent: marko.makela@oracle.com-20100514130228-n3n42nw7ht78k0wn
committer: Marko Mkel <marko.makela@oracle.com>
branch nick: mysql-5.1-innodb2
timestamp: Fri 2010-05-14 16:08:15 +0300
message:
  Make the InnoDB FOREIGN KEY parser understand multi-statements. (Bug #48024)
  Also make InnoDB thinks that /*/ only starts a comment. (Bug #53644).

  This fixes the bugs in the InnoDB Plugin.

  ha_innodb.h: Use trx_query_string() instead of trx_query() when
  available (MySQL 5.1.42 or later).

  innobase_get_stmt(): New function, to retrieve the currently running
  SQL statement.

  struct trx_struct: Remove mysql_query_str. Use innobase_get_stmt() instead.

  dict_strip_comments(): Add and observe the parameter sql_length. Treat
  /*/ as the start of a comment.

  dict_create_foreign_constraints(), row_table_add_foreign_constraints():
  Add the parameter sql_length.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl  Copyright (C) 2009 Sun Microsystems
 
2
dnl This file is free software; Sun Microsystems
 
3
dnl gives unlimited permission to copy and/or distribute it,
 
4
dnl with or without modifications, as long as this notice is preserved.
 
5
 
 
6
dnl PANDORA_HEADER_ASSERT
 
7
dnl ----------------
 
8
dnl Check whether to enable assertions.
 
9
AC_DEFUN([PANDORA_HEADER_ASSERT],
 
10
[
 
11
  AC_CHECK_HEADERS(assert.h)
 
12
  AC_MSG_CHECKING([whether to enable assertions])
 
13
  AC_ARG_ENABLE([assert],
 
14
    [AS_HELP_STRING([--disable-assert],
 
15
       [Turn off assertions])],
 
16
    [ac_cv_assert="no"],
 
17
    [ac_cv_assert="yes"])
 
18
  AC_MSG_RESULT([$ac_cv_assert])
 
19
 
 
20
  AS_IF([test "$ac_cv_assert" = "no"], 
 
21
    [AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])])
 
22
])
 
23