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
6af9b46e
Commit
6af9b46e
authored
Jan 25, 2003
by
venu@myvenu.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove un-used variables
Pure coverage tests (debug only)
parent
bea75a42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
include/mysql.h
include/mysql.h
+1
-3
tests/client_test.c
tests/client_test.c
+22
-0
No files found.
include/mysql.h
View file @
6af9b46e
...
...
@@ -516,12 +516,9 @@ typedef struct st_mysql_stmt
MYSQL_FIELD
*
fields
;
/* prepare meta info */
LIST
list
;
/* list to keep track of all stmts */
char
*
query
;
/* query buffer */
char
*
buffer
;
/* buffer to hold results */
MEM_ROOT
mem_root
;
/* root allocations */
MYSQL_RES
tmp_result
;
/* Used by mysql_prepare_result */
unsigned
long
param_count
;
/* parameters count */
unsigned
long
field_count
;
/* fields count */
unsigned
long
buffer_length
;
/* long buffer alloced length */
unsigned
long
stmt_id
;
/* Id for prepared statement */
unsigned
int
last_errno
;
/* error code */
enum
PREP_STMT_STATE
state
;
/* statement state */
...
...
@@ -552,6 +549,7 @@ my_bool STDCALL mysql_send_long_data(MYSQL_STMT *stmt,
const
char
*
data
,
unsigned
long
length
);
MYSQL_RES
*
STDCALL
mysql_prepare_result
(
MYSQL_STMT
*
stmt
);
MYSQL_RES
*
STDCALL
mysql_param_result
(
MYSQL_STMT
*
stmt
);
my_ulonglong
STDCALL
mysql_stmt_affected_rows
(
MYSQL_STMT
*
stmt
);
int
STDCALL
mysql_stmt_store_result
(
MYSQL_STMT
*
stmt
);
my_bool
STDCALL
mysql_more_results
(
MYSQL
*
mysql
);
...
...
tests/client_test.c
View file @
6af9b46e
...
...
@@ -4967,11 +4967,28 @@ static void test_pure_coverage()
stmt
=
mysql_prepare
(
mysql
,
"insert into test_pure(c67788) values(10)"
,
100
);
mystmt_init_r
(
stmt
);
#ifndef DBUG_OFF
stmt
=
mysql_prepare
(
mysql
,(
const
char
*
)
0
,
0
);
mystmt_init_r
(
stmt
);
stmt
=
mysql_prepare
(
mysql
,
"insert into test_pure(c2) values(10)"
,
100
);
mystmt_init
(
stmt
);
verify_param_count
(
stmt
,
0
);
rc
=
mysql_bind_param
(
stmt
,
bind
);
mystmt_r
(
stmt
,
rc
);
mysql_stmt_close
(
stmt
);
#endif
stmt
=
mysql_prepare
(
mysql
,
"insert into test_pure(c2) values(?)"
,
100
);
mystmt_init
(
stmt
);
#ifndef DBUG_OFF
rc
=
mysql_execute
(
stmt
);
mystmt_r
(
stmt
,
rc
);
/* No parameters supplied */
#endif
bind
[
0
].
length
=
&
length
;
bind
[
0
].
is_null
=
0
;
...
...
@@ -4999,6 +5016,11 @@ static void test_pure_coverage()
rc
=
mysql_execute
(
stmt
);
mystmt
(
stmt
,
rc
);
#ifndef DBUG_OFF
rc
=
mysql_bind_result
(
stmt
,
(
MYSQL_BIND
*
)
0
);
mystmt_r
(
stmt
,
rc
);
#endif
rc
=
mysql_stmt_store_result
(
stmt
);
mystmt
(
stmt
,
rc
);
...
...
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