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
04af81d7
Commit
04af81d7
authored
Oct 30, 2009
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
a765de73
ea412fc2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
24 deletions
+34
-24
Makefile.am
Makefile.am
+6
-0
client/mysqltest.cc
client/mysqltest.cc
+28
-24
No files found.
Makefile.am
View file @
04af81d7
...
@@ -196,6 +196,10 @@ test-bt-fast:
...
@@ -196,6 +196,10 @@ test-bt-fast:
-
cd
mysql-test
;
MTR_BUILD_THREAD
=
auto
\
-
cd
mysql-test
;
MTR_BUILD_THREAD
=
auto
\
@PERL@ ./mysql-test-run.pl
--force
--comment
=
stress
--suite
=
stress
@PERL@ ./mysql-test-run.pl
--force
--comment
=
stress
--suite
=
stress
test-bt-fast
:
-
cd
mysql-test
;
MTR_BUILD_THREAD
=
auto
\
@PERL@ ./mysql-test-run.pl
--force
--comment
=
ps
--ps-protocol
--report-features
test-bt-debug
:
test-bt-debug
:
-
cd
mysql-test
;
MTR_BUILD_THREAD
=
auto
\
-
cd
mysql-test
;
MTR_BUILD_THREAD
=
auto
\
@PERL@ ./mysql-test-run.pl
--comment
=
debug
--force
--timer
\
@PERL@ ./mysql-test-run.pl
--comment
=
debug
--force
--timer
\
...
@@ -203,6 +207,8 @@ test-bt-debug:
...
@@ -203,6 +207,8 @@ test-bt-debug:
test-bt-debug-fast
:
test-bt-debug-fast
:
test-bt-debug-fast
:
# Keep these for a while
# Keep these for a while
test-pl
:
test
test-pl
:
test
test-full-pl
:
test-full
test-full-pl
:
test-full
...
...
client/mysqltest.cc
View file @
04af81d7
...
@@ -6913,35 +6913,39 @@ void run_query_stmt(MYSQL *mysql, struct st_command *command,
...
@@ -6913,35 +6913,39 @@ void run_query_stmt(MYSQL *mysql, struct st_command *command,
Need to grab affected rows information before getting
Need to grab affected rows information before getting
warnings here
warnings here
*/
*/
if
(
!
disable_info
)
affected_rows
=
mysql_affected_rows
(
mysql
);
if
(
!
disable_warnings
)
{
{
/* Get the warnings from execute */
ulonglong
affected_rows
;
LINT_INIT
(
affected_rows
);
if
(
!
disable_info
)
affected_rows
=
mysql_affected_rows
(
mysql
);
/* Append warnings to ds - if there are any */
if
(
!
disable_warnings
)
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
);
/* Get the warnings from execute */
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 warnings to ds - if there are any */
append_info
(
ds
,
affected_rows
,
mysql_info
(
mysql
));
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
));
}
}
}
end:
end:
...
...
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