~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to config/lcov.am

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
#  Copyright (C) 2010 Hartmut Holzgraefe
 
2
#
 
3
#  This program is free software; you can redistribute it and/or modify
 
4
#  it under the terms of the GNU General Public License as published by
 
5
#  the Free Software Foundation; version 2 of the License.
 
6
#
 
7
#  This program is distributed in the hope that it will be useful,
 
8
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
#  GNU General Public License for more details.
 
11
#
 
12
#  You should have received a copy of the GNU General Public License
 
13
#  along with this program; if not, write to the Free Software
 
14
#  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
15
 
 
16
LCOV = lcov
 
17
LCOV_GENHTML = genhtml
 
18
 
 
19
lcov: lcov-html
 
20
 
 
21
lcov-test: lcov-clean-data test
 
22
 
 
23
drizzle_lcov.info: lcov-test
 
24
        @echo "Generating $@"
 
25
        $(LCOV) --directory . --capture --base-directory . --output-file $@
 
26
        $(LCOV) --remove $@ '/usr/include/*' --output-file $@
 
27
        $(LCOV) --remove $@ '/usr/local/include/*' --output-file $@
 
28
        @echo
 
29
 
 
30
lcov-html: drizzle_lcov.info
 
31
        @echo "Generating lcov HTML"
 
32
        @$(LCOV_GENHTML) --legend --output-directory lcov_html/ --title "Drizzle Code Coverage" $<
 
33
 
 
34
lcov-clean:
 
35
        rm -f drizzle_lcov.info
 
36
        rm -rf lcov_data/
 
37
        rm -rf lcov_html/
 
38
 
 
39
lcov-clean-data:
 
40
        @find . -name \*.gcda -o -name \*.da -o -name \*.bbg? | xargs rm -f
 
41
 
 
42