diff options
author | Michael Widenius <monty@askmonty.org> | 2011-12-13 14:00:20 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2011-12-13 14:00:20 +0200 |
commit | b653115c8e0ce1015b74f9aeab3ad30f71ce4379 (patch) | |
tree | 6ab1272ea53db0ece3c05a3997d5348bb5d676c7 /win | |
parent | 63d32c115dd962b53cf7bcaa340472ee2f44f9e2 (diff) | |
download | mariadb-git-b653115c8e0ce1015b74f9aeab3ad30f71ce4379.tar.gz |
Fixed valgrind error when storing db_name_length in query_cache.
- Changed storage to be 2 bytes instead of sizeof(size_t) (simple optimization)
- Fixed bug when using query_cache_strip_comments and query that started with '('
- Fixed DBUG_PRINT() that used wrong (not initialized) variables.
mysql-test/mysql-test-run.pl:
Added some space to make output more readable.
mysql-test/r/query_cache.result:
Updated test results
mysql-test/t/query_cache.test:
Added test with query_cache_strip_comments
sql/mysql_priv.h:
Added QUERY_CACHE_DB_LENGTH_SIZE
sql/sql_cache.cc:
Fixed bug when using query_cache_strip_comments and query that started with '('
Store db length in 2 characters instead of size_t.
Get db length from correct position (earlier we had an error when query started with ' ')
Fixed DBUG_PRINT() that used wrong (not initialized) variables.
Diffstat (limited to 'win')
0 files changed, 0 insertions, 0 deletions