diff options
author | Alexander Nozdrin <alexander.nozdrin@oracle.com> | 2011-03-22 14:48:56 +0300 |
---|---|---|
committer | Alexander Nozdrin <alexander.nozdrin@oracle.com> | 2011-03-22 14:48:56 +0300 |
commit | 7117e0635c60f5db23ebb0f4b0866ce93b8ffaed (patch) | |
tree | 02b955582a97c6c1aaf1ebd3e887b04520f98302 /tests | |
parent | b629abf3ae26ef9b828efc1dafa85cb098a987b0 (diff) | |
download | mariadb-git-7117e0635c60f5db23ebb0f4b0866ce93b8ffaed.tar.gz |
A patch for Bug#11763413 (56115: SELECT doesn't work in
prepared statements with cursor protocol).
The problem was a bug in Materialized-cursor implementation.
Materialized_cursor::open() called send_result_metadata()
with items pointing to already closed table.
The fix is to send metadata when the table is still open.
NOTE: this is a "partial" fix: metadata are different with
and without --cursor-protocol, but that's a different large
problem, one indication of which is reported as Bug 24176.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index b5326c5bee9..348ea9b6f29 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15694,8 +15694,11 @@ static void test_bug13488() check_execute(stmt1, rc); if (!opt_silent) - printf("data is: %s", (f1 == 1 && f2 == 1 && f3 == 2)?"OK": - "wrong"); + { + printf("data: f1: %d; f2: %d; f3: %d\n", f1, f2, f3); + printf("data is: %s\n", + (f1 == 1 && f2 == 1 && f3 == 2) ? "OK" : "wrong"); + } DIE_UNLESS(f1 == 1 && f2 == 1 && f3 == 2); rc= mysql_query(mysql, "drop table t1, t2"); myquery(rc); |