summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2005-07-14 15:27:24 +0400
committerkonstantin@mysql.com <>2005-07-14 15:27:24 +0400
commit509531421c7aba1a4180652d1764c34b62cafd72 (patch)
tree688fe5524a95846828b29c134acbcc3a4f7f0e39 /tests
parent3cf9a4c4fc466223f1f14f32394142420206badc (diff)
downloadmariadb-git-509531421c7aba1a4180652d1764c34b62cafd72.tar.gz
Implement MarkM optimization request to avoid redundnat packet exchange
in cursors.
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index bc30bf5f186..0b88fa1b273 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -13050,27 +13050,6 @@ static void test_bug9478()
check_execute(stmt, rc);
if (!opt_silent && i == 0)
printf("Fetched row: %s\n", a);
- /*
- Although protocol-wise an attempt to execute a statement which
- already has an open cursor associated with it will yield an error,
- the client library behavior tested here is consistent with
- the non-cursor execution scenario: mysql_stmt_execute will
- silently close the cursor if necessary.
- */
- {
- char buff[9];
- /* Fill in the execute packet */
- int4store(buff, stmt->stmt_id);
- buff[4]= 0; /* Flag */
- int4store(buff+5, 1); /* Reserved for array bind */
- rc= ((*mysql->methods->advanced_command)(mysql, COM_STMT_EXECUTE, buff,
- sizeof(buff), 0,0,1) ||
- (*mysql->methods->read_query_result)(mysql));
- DIE_UNLESS(rc);
- if (!opt_silent && i == 0)
- printf("Got error (as expected): %s\n", mysql_error(mysql));
- }
-
rc= mysql_stmt_execute(stmt);
check_execute(stmt, rc);
@@ -13429,7 +13408,7 @@ static void test_bug10794()
bind[1].length= &a_len;
rc= mysql_stmt_bind_param(stmt, bind);
check_execute(stmt, rc);
- for (i= 0; i < 34; i++)
+ for (i= 0; i < 42; i++)
{
id_val= (i+1)*10;
sprintf(a, "a%d", i);