mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
This changeset belongs to the fix of Bug#735 Prepared Statements: there is no support for Query Cache
- Create "--ps-protocol" and no "--<whatever>-protocol" variants of the former tests t/grant_cache.test and t/query_cache_sql_prepare.test. - Some additional subtest and fixes of bugs - Minor improvements
This commit is contained in:
@ -2471,7 +2471,7 @@ static void test_ps_query_cache()
|
||||
"(2, 'hh', 'hh'), (1, 'ii', 'ii'), (2, 'ii', 'ii')");
|
||||
myquery(rc);
|
||||
|
||||
for (iteration= TEST_QCACHE_ON; iteration < TEST_QCACHE_ON_OFF; iteration++)
|
||||
for (iteration= TEST_QCACHE_ON; iteration <= TEST_QCACHE_ON_OFF; iteration++)
|
||||
{
|
||||
|
||||
switch (iteration)
|
||||
@ -2610,7 +2610,9 @@ static void test_ps_query_cache()
|
||||
case TEST_QCACHE_ON_OFF: /* should not have hit */
|
||||
DIE_UNLESS(hits2-hits1 == 0);
|
||||
break;
|
||||
case TEST_QCACHE_ON_WITH_OTHER_CONN:
|
||||
case TEST_QCACHE_ON_WITH_OTHER_CONN: /* should have hit */
|
||||
DIE_UNLESS(hits2-hits1 == 1);
|
||||
break;
|
||||
mysql_close(lmysql);
|
||||
mysql= org_mysql;
|
||||
}
|
||||
|
Reference in New Issue
Block a user