summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@mysql.com>2009-04-30 12:52:27 +0500
committerAlexey Botchkov <holyfoot@mysql.com>2009-04-30 12:52:27 +0500
commit626a272ed47287a06f44e52a0459d9caf5d2b80e (patch)
tree7fd61092f656f5c8b10ebd0e923a230a50022920 /tests
parenteed928808ee3c5c4b636d9d7d3ba9e2a89edc1c6 (diff)
downloadmariadb-git-626a272ed47287a06f44e52a0459d9caf5d2b80e.tar.gz
mysql_client_test fixed.
per-file comments: tests/mysql_client_test.c the test for bug 37956 isn't relevant anymore. The query there 'select point(?,?)' doesn't produce an error.
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index d006a557819..9e026a27b6d 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -15904,61 +15904,6 @@ static void test_bug28934()
}
-#ifdef HAVE_SPATIAL
-/**
- Bug#37956 memory leak and / or crash with geometry and prepared statements!
-*/
-
-static void test_bug37956(void)
-{
- const char *query="select point(?,?)";
- MYSQL_STMT *stmt=NULL;
- ulong val=0;
- MYSQL_BIND bind_param[2];
- unsigned char buff[2]= { 134, 211 };
- DBUG_ENTER("test_bug37956");
- myheader("test_bug37956");
-
- stmt= mysql_simple_prepare(mysql, query);
- check_stmt(stmt);
-
- val=1;
- mysql_stmt_attr_set(stmt, STMT_ATTR_UPDATE_MAX_LENGTH, (void *)&val);
- val=CURSOR_TYPE_READ_ONLY;
- mysql_stmt_attr_set(stmt, STMT_ATTR_CURSOR_TYPE, (void *)&val);
- val=0;
- mysql_stmt_attr_set(stmt, STMT_ATTR_PREFETCH_ROWS, (void *)&val);
-
- memset(bind_param, 0, sizeof(bind_param));
- bind_param[0].buffer_type=MYSQL_TYPE_TINY;
- bind_param[0].buffer= (void *)buff;
- bind_param[0].is_null=NULL;
- bind_param[0].error=NULL;
- bind_param[0].is_unsigned=1;
- bind_param[1].buffer_type=MYSQL_TYPE_TINY;
- bind_param[1].buffer= (void *)(buff+1);
- bind_param[1].is_null=NULL;
- bind_param[1].error=NULL;
- bind_param[1].is_unsigned=1;
-
- if (mysql_stmt_bind_param(stmt, bind_param))
- {
- mysql_stmt_close(stmt);
- DIE_UNLESS(0);
- }
-
- if (mysql_stmt_execute(stmt))
- {
- mysql_stmt_close(stmt);
- DBUG_VOID_RETURN;
- }
- /* Should never reach here: execution returns an error. */
- mysql_stmt_close(stmt);
- DIE_UNLESS(0);
- DBUG_VOID_RETURN;
-}
-#endif
-
/*
Bug#27592 (stack overrun when storing datetime value using prepared statements)
*/
@@ -16945,9 +16890,6 @@ static struct my_tests_st my_tests[]= {
{ "test_bug32265", test_bug32265 },
{ "test_bug38486", test_bug38486 },
{ "test_bug40365", test_bug40365 },
-#ifdef HAVE_SPATIAL
- { "test_bug37956", test_bug37956 },
-#endif
#ifdef HAVE_QUERY_CACHE
{ "test_bug36326", test_bug36326 },
#endif