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
28a88a07
Commit
28a88a07
authored
Feb 15, 2006
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jimw/my/mysql-5.0-clean
into mysql.com:/home/jimw/my/mysql-5.1-clean
parents
99030e3f
469cd9c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
libmysql/libmysql.c
libmysql/libmysql.c
+1
-0
tests/mysql_client_test.c
tests/mysql_client_test.c
+16
-0
No files found.
libmysql/libmysql.c
View file @
28a88a07
...
@@ -2002,6 +2002,7 @@ mysql_stmt_init(MYSQL *mysql)
...
@@ -2002,6 +2002,7 @@ mysql_stmt_init(MYSQL *mysql)
stmt
->
mysql
=
mysql
;
stmt
->
mysql
=
mysql
;
stmt
->
read_row_func
=
stmt_read_row_no_result_set
;
stmt
->
read_row_func
=
stmt_read_row_no_result_set
;
stmt
->
prefetch_rows
=
DEFAULT_PREFETCH_ROWS
;
stmt
->
prefetch_rows
=
DEFAULT_PREFETCH_ROWS
;
strmov
(
stmt
->
sqlstate
,
not_error_sqlstate
);
/* The rest of statement members was bzeroed inside malloc */
/* The rest of statement members was bzeroed inside malloc */
DBUG_RETURN
(
stmt
);
DBUG_RETURN
(
stmt
);
...
...
tests/mysql_client_test.c
View file @
28a88a07
...
@@ -14729,6 +14729,21 @@ static void test_bug12744()
...
@@ -14729,6 +14729,21 @@ static void test_bug12744()
client_connect
(
0
);
client_connect
(
0
);
}
}
/* Bug #16143: mysql_stmt_sqlstate returns an empty string instead of '00000' */
static
void
test_bug16143
()
{
MYSQL_STMT
*
stmt
;
myheader
(
"test_bug16143"
);
stmt
=
mysql_stmt_init
(
mysql
);
/* Check mysql_stmt_sqlstate return "no error" */
DIE_UNLESS
(
strcmp
(
mysql_stmt_sqlstate
(
stmt
),
"00000"
)
==
0
);
mysql_stmt_close
(
stmt
);
}
/* Bug #16144: mysql_stmt_attr_get type error */
/* Bug #16144: mysql_stmt_attr_get type error */
static
void
test_bug16144
()
static
void
test_bug16144
()
...
@@ -15072,6 +15087,7 @@ static struct my_tests_st my_tests[]= {
...
@@ -15072,6 +15087,7 @@ static struct my_tests_st my_tests[]= {
{
"test_opt_reconnect"
,
test_opt_reconnect
},
{
"test_opt_reconnect"
,
test_opt_reconnect
},
{
"test_bug15510"
,
test_bug15510
},
{
"test_bug15510"
,
test_bug15510
},
{
"test_bug12744"
,
test_bug12744
},
{
"test_bug12744"
,
test_bug12744
},
{
"test_bug16143"
,
test_bug16143
},
{
"test_bug16144"
,
test_bug16144
},
{
"test_bug16144"
,
test_bug16144
},
{
"test_bug15613"
,
test_bug15613
},
{
"test_bug15613"
,
test_bug15613
},
{
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