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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
eb574697
Commit
eb574697
authored
Mar 10, 2017
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test for windows 64
parent
f2fe5cb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
tests/mysql_client_test.c
tests/mysql_client_test.c
+13
-5
No files found.
tests/mysql_client_test.c
View file @
eb574697
...
...
@@ -19460,23 +19460,31 @@ static void test_big_packet()
}
/* Test simple prepares of all DML statements */
static
void
test_prepare_analyze
()
{
MYSQL_STMT
*
stmt
;
const
char
*
query
=
"ANALYZE SELECT 1"
;
int
rc
;
myheader
(
"test_prepare_analyze"
);
stmt
=
mysql_stmt_init
(
mysql
);
check_stmt
(
stmt
);
rc
=
mysql_stmt_prepare
(
stmt
,
"ANALYZE SELECT 1"
,
-
1
);
rc
=
mysql_stmt_prepare
(
stmt
,
query
,
strlen
(
query
)
);
check_execute
(
stmt
,
rc
);
verify_param_count
(
stmt
,
0
);
rc
=
mysql_stmt_execute
(
stmt
);
check_execute
(
stmt
,
rc
);
mysql_stmt_close
(
stmt
);
rc
=
mysql_stmt_store_result
(
stmt
);
check_execute
(
stmt
,
rc
);
while
(
!
(
rc
=
mysql_stmt_fetch
(
stmt
)))
;
DIE_UNLESS
(
rc
==
MYSQL_NO_DATA
);
rc
=
mysql_stmt_close
(
stmt
);
check_execute
(
stmt
,
rc
);
}
static
struct
my_tests_st
my_tests
[]
=
{
...
...
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