summaryrefslogtreecommitdiff
path: root/sql/records.cc
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.fi>2001-04-11 20:19:52 +0300
committerunknown <monty@donna.mysql.fi>2001-04-11 20:19:52 +0300
commit9bf58f4fac22a61190b26a13b7ef6f5ec2b85ff2 (patch)
tree0c2df4ea1281838e375d4087e0cd217f5de5140d /sql/records.cc
parent494a3a0fc74ef5ea5547e54603808b11221ec4c1 (diff)
downloadmariadb-git-9bf58f4fac22a61190b26a13b7ef6f5ec2b85ff2.tar.gz
Fixed bug in REGEXP for Linux Alpha
Docs/manual.texi: Updated MyODBC section libmysql/conf_to_src.c: Fixed wrong typecast mysql-test/r/func_regexp.result: Added test case for REGEXP bug mysql-test/t/func_regexp.test: Added test case for REGEXP bug regex/engine.c: Fixed wrong type regex/regexec.c: Fixed wrong type sql/records.cc: Fixed test of READ lock sql/slave.cc: Cleanup
Diffstat (limited to 'sql/records.cc')
-rw-r--r--sql/records.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/records.cc b/sql/records.cc
index 56e0536e75a..3187aa424d7 100644
--- a/sql/records.cc
+++ b/sql/records.cc
@@ -69,7 +69,7 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table,
my_default_record_cache_size &&
!table->file->fast_key_read() &&
(table->db_stat & HA_READ_ONLY ||
- table->reginfo.lock_type == TL_READ) &&
+ table->reginfo.lock_type <= TL_READ_NO_INSERT) &&
(ulonglong) table->reclength*(table->file->records+
table->file->deleted) >
(ulonglong) MIN_FILE_LENGTH_TO_USE_ROW_CACHE &&