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
db67a2ee
Commit
db67a2ee
authored
Jan 07, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple misc cases - warnings
parent
e3494520
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
2 deletions
+26
-2
mysql-test/r/create.result
mysql-test/r/create.result
+1
-1
mysql-test/r/warnings.result
mysql-test/r/warnings.result
+17
-0
mysql-test/t/create.test
mysql-test/t/create.test
+1
-1
mysql-test/t/warnings.test
mysql-test/t/warnings.test
+7
-0
No files found.
mysql-test/r/create.result
View file @
db67a2ee
drop table if exists t1,t2;
drop table if exists t1,t2
,t3
;
create table t1 (b char(0));
insert into t1 values (""),(null);
select * from t1;
...
...
mysql-test/r/warnings.result
View file @
db67a2ee
...
...
@@ -13,3 +13,20 @@ set SQL_WARNINGS=0;
drop temporary table if exists not_exists;
Warnings:
Note 1051 Unknown table 'not_exists'
drop table if exists not_exists_table;
Warnings:
Note 1051 Unknown table 'not_exists_table'
show warnings limit 1;
Level Code Message
Note 1051 Unknown table 'not_exists_table'
drop database if exists not_exists_db;
Warnings:
Note 1008 Can't drop database 'not_exists_db'. Database doesn't exist
show count(*) warnings;
@@session.warning_count
1
create table t1(id int);
create table if not exists t1(id int);
select @@warning_count;
@@warning_count
0
mysql-test/t/create.test
View file @
db67a2ee
...
...
@@ -3,7 +3,7 @@
#
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
drop
table
if
exists
t1
,
t2
,
t3
;
--
enable_warnings
create
table
t1
(
b
char
(
0
));
...
...
mysql-test/t/warnings.test
View file @
db67a2ee
...
...
@@ -19,3 +19,10 @@ set SQL_WARNINGS=0;
# Test other warnings
drop
temporary
table
if
exists
not_exists
;
drop
table
if
exists
not_exists_table
;
show
warnings
limit
1
;
drop
database
if
exists
not_exists_db
;
show
count
(
*
)
warnings
;
create
table
t1
(
id
int
);
create
table
if
not
exists
t1
(
id
int
);
select
@@
warning_count
;
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