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
f45cf3e9
Commit
f45cf3e9
authored
Nov 26, 2007
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#25146 Some warnings/errors not shown when using --show-warnings
- Additional patch to fix compiler warnings
parent
385e3a89
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
client/mysql.cc
client/mysql.cc
+3
-2
mysql-test/r/mysql.result
mysql-test/r/mysql.result
+1
-1
mysql-test/t/mysql.test
mysql-test/t/mysql.test
+1
-1
No files found.
client/mysql.cc
View file @
f45cf3e9
...
@@ -2166,7 +2166,7 @@ com_go(String *buffer,char *line __attribute__((unused)))
...
@@ -2166,7 +2166,7 @@ com_go(String *buffer,char *line __attribute__((unused)))
{
{
char
buff
[
200
],
time_buff
[
32
],
*
pos
;
char
buff
[
200
],
time_buff
[
32
],
*
pos
;
MYSQL_RES
*
result
;
MYSQL_RES
*
result
;
ulong
timer
,
warnings
;
ulong
timer
,
warnings
=
0
;
uint
error
=
0
;
uint
error
=
0
;
int
err
=
0
;
int
err
=
0
;
...
@@ -2316,7 +2316,8 @@ com_go(String *buffer,char *line __attribute__((unused)))
...
@@ -2316,7 +2316,8 @@ com_go(String *buffer,char *line __attribute__((unused)))
end:
end:
if
(
show_warnings
==
1
&&
warnings
>=
1
)
/* Show warnings if any */
/* Show warnings if any or error occured */
if
(
show_warnings
==
1
&&
(
warnings
>=
1
||
error
))
print_warnings
();
print_warnings
();
if
(
!
error
&&
!
status
.
batch
&&
if
(
!
error
&&
!
status
.
batch
&&
...
...
mysql-test/r/mysql.result
View file @
f45cf3e9
...
@@ -184,7 +184,7 @@ End of 5.0 tests
...
@@ -184,7 +184,7 @@ End of 5.0 tests
WARNING: --server-arg option not supported in this configuration.
WARNING: --server-arg option not supported in this configuration.
Warning (Code 1286): Unknown table engine 'nonexistent'
Warning (Code 1286): Unknown table engine 'nonexistent'
Warning (Code 1266): Using storage engine MyISAM for table 't2'
Warning (Code 1266): Using storage engine MyISAM for table 't2'
Warning (Code 1286): Unknown table engine 'nonexistent'
Warning (Code 1286): Unknown table engine 'nonexistent
2
'
Warning (Code 1266): Using storage engine MyISAM for table 't2'
Warning (Code 1266): Using storage engine MyISAM for table 't2'
Error (Code 1050): Table 't2' already exists
Error (Code 1050): Table 't2' already exists
drop tables t1, t2;
drop tables t1, t2;
...
...
mysql-test/t/mysql.test
View file @
f45cf3e9
...
@@ -312,7 +312,7 @@ remove_file $MYSQLTEST_VARDIR/tmp/bug29323.sql;
...
@@ -312,7 +312,7 @@ remove_file $MYSQLTEST_VARDIR/tmp/bug29323.sql;
# This should fail, with warnings as well
# This should fail, with warnings as well
--
error
1
--
error
1
--
exec
$MYSQL
--
show
-
warnings
test
-
e
"create table t2 (id int) engine=nonexistent"
--
exec
$MYSQL
--
show
-
warnings
test
-
e
"create table t2 (id int) engine=nonexistent
2
"
drop
tables
t1
,
t2
;
drop
tables
t1
,
t2
;
...
...
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