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
1ceb1d1b
Commit
1ceb1d1b
authored
Jun 30, 2010
by
Staale Smedseng
Browse files
Options
Browse Files
Download
Plain Diff
Automerge
parents
45c6803f
3b3983a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
libmysql/libmysql.c
libmysql/libmysql.c
+24
-4
No files found.
libmysql/libmysql.c
View file @
1ceb1d1b
...
...
@@ -2127,7 +2127,12 @@ static my_bool execute(MYSQL_STMT *stmt, char *packet, ulong length)
stmt
->
insert_id
=
mysql
->
insert_id
;
if
(
res
)
{
set_stmt_errmsg
(
stmt
,
net
);
/*
Don't set stmt error if stmt->mysql is NULL, as the error in this case
has already been set by mysql_prune_stmt_list().
*/
if
(
stmt
->
mysql
)
set_stmt_errmsg
(
stmt
,
net
);
DBUG_RETURN
(
1
);
}
DBUG_RETURN
(
0
);
...
...
@@ -2338,7 +2343,12 @@ stmt_read_row_from_cursor(MYSQL_STMT *stmt, unsigned char **row)
buff
,
sizeof
(
buff
),
(
uchar
*
)
0
,
0
,
1
,
stmt
))
{
set_stmt_errmsg
(
stmt
,
net
);
/*
Don't set stmt error if stmt->mysql is NULL, as the error in this case
has already been set by mysql_prune_stmt_list().
*/
if
(
stmt
->
mysql
)
set_stmt_errmsg
(
stmt
,
net
);
return
1
;
}
if
((
*
mysql
->
methods
->
read_rows_from_cursor
)(
stmt
))
...
...
@@ -3025,7 +3035,12 @@ mysql_stmt_send_long_data(MYSQL_STMT *stmt, uint param_number,
buff
,
sizeof
(
buff
),
(
uchar
*
)
data
,
length
,
1
,
stmt
))
{
set_stmt_errmsg
(
stmt
,
&
mysql
->
net
);
/*
Don't set stmt error if stmt->mysql is NULL, as the error in this case
has already been set by mysql_prune_stmt_list().
*/
if
(
stmt
->
mysql
)
set_stmt_errmsg
(
stmt
,
&
mysql
->
net
);
DBUG_RETURN
(
1
);
}
}
...
...
@@ -4440,7 +4455,12 @@ int STDCALL mysql_stmt_store_result(MYSQL_STMT *stmt)
if
(
cli_advanced_command
(
mysql
,
COM_STMT_FETCH
,
buff
,
sizeof
(
buff
),
(
uchar
*
)
0
,
0
,
1
,
stmt
))
{
set_stmt_errmsg
(
stmt
,
net
);
/*
Don't set stmt error if stmt->mysql is NULL, as the error in this case
has already been set by mysql_prune_stmt_list().
*/
if
(
stmt
->
mysql
)
set_stmt_errmsg
(
stmt
,
net
);
DBUG_RETURN
(
1
);
}
}
...
...
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