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
72362ac7
Commit
72362ac7
authored
Nov 09, 2009
by
Alexander Nozdrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix manual-merge.
parent
e89a561d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
28 deletions
+21
-28
client/mysqltest.cc
client/mysqltest.cc
+21
-28
No files found.
client/mysqltest.cc
View file @
72362ac7
...
...
@@ -6933,38 +6933,31 @@ void run_query_stmt(MYSQL *mysql, struct st_command *command,
Fetch info before fetching warnings, since it will be reset
otherwise.
*/
{
ulonglong
affected_rows
;
LINT_INIT
(
affected_rows
);
if
(
!
disable_info
)
append_info
(
ds
,
mysql_stmt_affected_rows
(
stmt
),
mysql_info
(
mysql
));
if
(
!
disable_info
)
append_info
(
ds
,
mysql_stmt_affected_rows
(
stmt
),
mysql_info
(
mysql
));
if
(
!
disable_warnings
)
{
/* Get the warnings from execute */
if
(
!
disable_warnings
)
{
/* Get the warnings from execute */
/* Append warnings to ds - if there are any */
if
(
append_warnings
(
&
ds_execute_warnings
,
mysql
)
||
ds_execute_warnings
.
length
||
ds_prepare_warnings
.
length
||
ds_warnings
->
length
)
{
dynstr_append_mem
(
ds
,
"Warnings:
\n
"
,
10
);
if
(
ds_warnings
->
length
)
dynstr_append_mem
(
ds
,
ds_warnings
->
str
,
ds_warnings
->
length
);
if
(
ds_prepare_warnings
.
length
)
dynstr_append_mem
(
ds
,
ds_prepare_warnings
.
str
,
ds_prepare_warnings
.
length
);
if
(
ds_execute_warnings
.
length
)
dynstr_append_mem
(
ds
,
ds_execute_warnings
.
str
,
ds_execute_warnings
.
length
);
}
/* Append warnings to ds - if there are any */
if
(
append_warnings
(
&
ds_execute_warnings
,
mysql
)
||
ds_execute_warnings
.
length
||
ds_prepare_warnings
.
length
||
ds_warnings
->
length
)
{
dynstr_append_mem
(
ds
,
"Warnings:
\n
"
,
10
);
if
(
ds_warnings
->
length
)
dynstr_append_mem
(
ds
,
ds_warnings
->
str
,
ds_warnings
->
length
);
if
(
ds_prepare_warnings
.
length
)
dynstr_append_mem
(
ds
,
ds_prepare_warnings
.
str
,
ds_prepare_warnings
.
length
);
if
(
ds_execute_warnings
.
length
)
dynstr_append_mem
(
ds
,
ds_execute_warnings
.
str
,
ds_execute_warnings
.
length
);
}
if
(
!
disable_info
)
append_info
(
ds
,
affected_rows
,
mysql_info
(
mysql
));
}
}
...
...
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