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
6054f814
Commit
6054f814
authored
Feb 10, 2005
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/kostja/work/mysql-4.1-root
into mysql.com:/home/kostja/work/mysql-5.0-root
parents
e9225b25
4b2b327d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
1 deletion
+38
-1
libmysql/libmysql.c
libmysql/libmysql.c
+17
-0
tests/mysql_client_test.c
tests/mysql_client_test.c
+21
-1
No files found.
libmysql/libmysql.c
View file @
6054f814
...
...
@@ -1809,6 +1809,18 @@ static my_bool my_realloc_str(NET *net, ulong length)
}
/* Clear possible error statee of struct NET */
static
void
net_clear_error
(
NET
*
net
)
{
if
(
net
->
last_errno
)
{
net
->
last_errno
=
0
;
net
->
last_error
[
0
]
=
'\0'
;
strmov
(
net
->
sqlstate
,
not_error_sqlstate
);
}
}
/*
Set statement error code, sqlstate, and error message
from given errcode and sqlstate.
...
...
@@ -4869,6 +4881,11 @@ my_bool STDCALL mysql_stmt_close(MYSQL_STMT *stmt)
if
(
mysql
->
unbuffered_fetch_owner
==
&
stmt
->
unbuffered_fetch_cancelled
)
mysql
->
unbuffered_fetch_owner
=
0
;
/*
Clear NET error state: if the following commands come through
successfully, connection will still be usable for other commands.
*/
net_clear_error
(
&
mysql
->
net
);
if
(
mysql
->
status
!=
MYSQL_STATUS_READY
)
{
/*
...
...
tests/mysql_client_test.c
View file @
6054f814
...
...
@@ -12513,7 +12513,7 @@ static void test_bug6761(void)
}
/* Bug#8330 -
Bug #8330
mysql_stmt_execute crashes (libmysql) */
/* Bug#8330 - mysql_stmt_execute crashes (libmysql) */
static
void
test_bug8330
()
{
...
...
@@ -12564,6 +12564,26 @@ static void test_bug8330()
}
/* Bug#7990 - mysql_stmt_close doesn't reset mysql->net.last_error */
static
void
test_bug7990
()
{
MYSQL_STMT
*
stmt
;
int
rc
;
myheader
(
"test_bug7990"
);
stmt
=
mysql_stmt_init
(
mysql
);
rc
=
mysql_stmt_prepare
(
stmt
,
"foo"
,
3
);
/*
XXX: the fact that we store errno both in STMT and in
MYSQL is not documented and is subject to change in 5.0
*/
DIE_UNLESS
(
rc
&&
mysql_stmt_errno
(
stmt
)
&&
mysql_errno
(
mysql
));
mysql_stmt_close
(
stmt
);
DIE_UNLESS
(
!
mysql_errno
(
mysql
));
}
/*
Read and parse arguments and MySQL options from my.cnf
*/
...
...
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