diff options
author | Timothy Smith <timothy.smith@sun.com> | 2008-12-14 12:28:19 -0700 |
---|---|---|
committer | Timothy Smith <timothy.smith@sun.com> | 2008-12-14 12:28:19 -0700 |
commit | 2450190eed67992c910615418137046ecfc0e2f4 (patch) | |
tree | daa964ba3f9cffdebcdc032eecf2e99fe4e7c8d1 /mysql-test/t/innodb-autoinc.test | |
parent | f6bf85c09e54b8232697c3fa6c85a7d61599bf6b (diff) | |
download | mariadb-git-2450190eed67992c910615418137046ecfc0e2f4.tar.gz |
Apply InnoDB snapshot innodb-5.1-ss2637, part 1. Fixes
Bug #37885: row_search_for_mysql may gap lock unnecessarily with SQL comments in query
Detailed revision comments:
r2603 | marko | 2008-08-21 16:25:05 +0300 (Thu, 21 Aug 2008) | 10 lines
branches/5.1: Identify SELECT statements by thd_sql_command() == SQLCOM_SELECT
instead of parsing the query string. This fixes MySQL Bug #37885 without
us having to implement lexical analysis of SQL comments in yet another place.
thd_is_select(): A new predicate.
row_search_for_mysql(): Use thd_is_select().
Approved by Heikki.
Diffstat (limited to 'mysql-test/t/innodb-autoinc.test')
0 files changed, 0 insertions, 0 deletions