Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8b33aad4
Commit
8b33aad4
authored
Jan 12, 2005
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A test case for Bug#6761 "mysql_list_fields doesn't work"
parent
2cc2844b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
tests/client_test.c
tests/client_test.c
+24
-0
No files found.
tests/client_test.c
View file @
8b33aad4
...
@@ -11503,6 +11503,29 @@ static void test_rewind(void)
...
@@ -11503,6 +11503,29 @@ static void test_rewind(void)
rc
=
mysql_stmt_close
(
stmt
);
rc
=
mysql_stmt_close
(
stmt
);
}
}
/* Bug#6761 - mysql_list_fields doesn't work */
static
void
test_bug6761
(
void
)
{
const
char
*
stmt_text
;
MYSQL_RES
*
res
;
int
rc
;
myheader
(
"test_bug6761"
);
stmt_text
=
"CREATE TABLE t1 (a int, b char(255), c decimal)"
;
rc
=
mysql_real_query
(
mysql
,
stmt_text
,
strlen
(
stmt_text
));
myquery
(
rc
);
res
=
mysql_list_fields
(
mysql
,
"t1"
,
"%"
);
DIE_UNLESS
(
res
&&
mysql_num_fields
(
res
)
==
3
);
mysql_free_result
(
res
);
stmt_text
=
"DROP TABLE t1"
;
rc
=
mysql_real_query
(
mysql
,
stmt_text
,
strlen
(
stmt_text
));
myquery
(
rc
);
}
/*
/*
Read and parse arguments and MySQL options from my.cnf
Read and parse arguments and MySQL options from my.cnf
*/
*/
...
@@ -11709,6 +11732,7 @@ static struct my_tests_st my_tests[]= {
...
@@ -11709,6 +11732,7 @@ static struct my_tests_st my_tests[]= {
{
"test_bug4172"
,
test_bug4172
},
{
"test_bug4172"
,
test_bug4172
},
{
"test_conversion"
,
test_conversion
},
{
"test_conversion"
,
test_conversion
},
{
"test_rewind"
,
test_rewind
},
{
"test_rewind"
,
test_rewind
},
{
"test_bug6761"
,
test_bug6761
},
{
0
,
0
}
{
0
,
0
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment