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
97a2c472
Commit
97a2c472
authored
May 21, 2003
by
venu@myvenu.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve merge conflict
parent
39cbb547
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
155 additions
and
15 deletions
+155
-15
mysql-test/r/warnings.result
mysql-test/r/warnings.result
+81
-3
mysql-test/t/warnings.test
mysql-test/t/warnings.test
+47
-1
sql/share/english/errmsg.txt
sql/share/english/errmsg.txt
+27
-11
No files found.
mysql-test/r/warnings.result
View file @
97a2c472
drop table if exists t1;
drop table if exists t1
, t2
;
Warnings:
Warnings:
Note 1051 Unknown table 't1'
Note 1051 Unknown table 't1'
Note 1051 Unknown table 't2'
create table t1 (a int);
create table t1 (a int);
insert into t1 values (1);
insert into t1 values (1);
insert into t1 values ("hej");
insert into t1 values ("hej");
Warnings:
Warning 1263 Data truncated for column 'a' at row 1
insert into t1 values ("hej"),("då");
insert into t1 values ("hej"),("då");
Warnings:
Warning 1263 Data truncated for column 'a' at row 1
Warning 1263 Data truncated for column 'a' at row 2
set SQL_WARNINGS=1;
set SQL_WARNINGS=1;
insert into t1 values ("hej");
insert into t1 values ("hej");
Warnings:
Warning 1263 Data truncated for column 'a' at row 1
insert into t1 values ("hej"),("då");
insert into t1 values ("hej"),("då");
Warnings:
Warning 1263 Data truncated for column 'a' at row 1
Warning 1263 Data truncated for column 'a' at row 2
drop table t1;
drop table t1;
set SQL_WARNINGS=0;
set SQL_WARNINGS=0;
drop temporary table if exists not_exists;
drop temporary table if exists not_exists;
...
@@ -31,10 +42,77 @@ select @@warning_count;
...
@@ -31,10 +42,77 @@ select @@warning_count;
@@warning_count
@@warning_count
0
0
drop table t1;
drop table t1;
create table t1(a tinyint, b int not null, c date, d char(5));
load data infile '../../std_data/warnings_loaddata.dat' into table t1 fields terminated by ',';
Warnings:
Warning 1261 Data truncated, NULL supplied to NOT NULL column 'b' at row 2
Warning 1263 Data truncated for column 'd' at row 3
Warning 1263 Data truncated for column 'c' at row 4
Warning 1259 Record count is fewer than the column count at row 5
Warning 1263 Data truncated for column 'b' at row 6
Warning 1260 Record count is more than the column count at row 7
Warning 1262 Data truncated, out of range for column 'a' at row 8
select @@warning_count;
@@warning_count
7
drop table t1;
create table t1(a tinyint NOT NULL, b tinyint unsigned, c char(5));
insert into t1 values(NULL,100,'mysql'),(10,-1,'mysql ab'),(500,256,'open source'),(20,NULL,'test');
Warnings:
Warning 1261 Data truncated, NULL supplied to NOT NULL column 'a' at row 1
Warning 1262 Data truncated, out of range for column 'b' at row 2
Warning 1263 Data truncated for column 'c' at row 2
Warning 1262 Data truncated, out of range for column 'a' at row 3
Warning 1262 Data truncated, out of range for column 'b' at row 3
Warning 1263 Data truncated for column 'c' at row 3
alter table t1 modify c char(4);
Warnings:
Warning 1263 Data truncated for column 'c' at row 1
Warning 1263 Data truncated for column 'c' at row 2
alter table t1 add d char(2);
update t1 set a=NULL where a=10;
Warnings:
Warning 1261 Data truncated, NULL supplied to NOT NULL column 'a' at row 2
update t1 set c='mysql ab' where c='test';
Warnings:
Warning 1263 Data truncated for column 'c' at row 4
update t1 set d=c;
Warnings:
Warning 1263 Data truncated for column 'd' at row 1
Warning 1263 Data truncated for column 'd' at row 2
Warning 1263 Data truncated for column 'd' at row 3
Warning 1263 Data truncated for column 'd' at row 4
create table t2(a tinyint NOT NULL, b char(3));
insert into t2 select b,c from t1;
Warnings:
Warning 1263 Data truncated for column 'b' at row 1
Warning 1263 Data truncated for column 'b' at row 2
Warning 1263 Data truncated for column 'b' at row 3
Warning 1261 Data truncated, NULL supplied to NOT NULL column 'a' at row 4
Warning 1263 Data truncated for column 'b' at row 4
drop table t1, t2;
create table t1(a char(10));
alter table t1 add b char;
set max_error_count=10;
update t1 set b=a;
Warnings:
Warning 1263 Data truncated for column 'b' at row 1
Warning 1263 Data truncated for column 'b' at row 2
Warning 1263 Data truncated for column 'b' at row 3
Warning 1263 Data truncated for column 'b' at row 4
Warning 1263 Data truncated for column 'b' at row 5
Warning 1263 Data truncated for column 'b' at row 6
Warning 1263 Data truncated for column 'b' at row 7
Warning 1263 Data truncated for column 'b' at row 8
Warning 1263 Data truncated for column 'b' at row 9
Warning 1263 Data truncated for column 'b' at row 10
select @@warning_count;
@@warning_count
50
create table t1 (id int) type=isam;
create table t1 (id int) type=isam;
Warnings:
Warnings:
Warning 12
59
Using storage engine MYISAM for table 't1'
Warning 12
64
Using storage engine MYISAM for table 't1'
alter table t1 type=isam;
alter table t1 type=isam;
Warnings:
Warnings:
Warning 12
59
Using storage engine MYISAM for table 't1'
Warning 12
64
Using storage engine MYISAM for table 't1'
drop table t1;
drop table t1;
mysql-test/t/warnings.test
View file @
97a2c472
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# Test some warnings
# Test some warnings
#
#
--
disable
-
warnings
--
disable
-
warnings
drop
table
if
exists
t1
;
drop
table
if
exists
t1
,
t2
;
--
enable
-
warnings
--
enable
-
warnings
create
table
t1
(
a
int
);
create
table
t1
(
a
int
);
...
@@ -17,6 +17,7 @@ set SQL_WARNINGS=0;
...
@@ -17,6 +17,7 @@ set SQL_WARNINGS=0;
#
#
# Test other warnings
# Test other warnings
#
drop
temporary
table
if
exists
not_exists
;
drop
temporary
table
if
exists
not_exists
;
drop
table
if
exists
not_exists_table
;
drop
table
if
exists
not_exists_table
;
...
@@ -28,6 +29,51 @@ create table if not exists t1(id int);
...
@@ -28,6 +29,51 @@ create table if not exists t1(id int);
select
@@
warning_count
;
select
@@
warning_count
;
drop
table
t1
;
drop
table
t1
;
#
# Test warnings for LOAD DATA INFILE
#
create
table
t1
(
a
tinyint
,
b
int
not
null
,
c
date
,
d
char
(
5
));
load
data
infile
'../../std_data/warnings_loaddata.dat'
into
table
t1
fields
terminated
by
','
;
select
@@
warning_count
;
drop
table
t1
;
#
# Warnings from basic INSERT, UPDATE and ALTER commands
#
create
table
t1
(
a
tinyint
NOT
NULL
,
b
tinyint
unsigned
,
c
char
(
5
));
insert
into
t1
values
(
NULL
,
100
,
'mysql'
),(
10
,
-
1
,
'mysql ab'
),(
500
,
256
,
'open source'
),(
20
,
NULL
,
'test'
);
alter
table
t1
modify
c
char
(
4
);
alter
table
t1
add
d
char
(
2
);
update
t1
set
a
=
NULL
where
a
=
10
;
update
t1
set
c
=
'mysql ab'
where
c
=
'test'
;
update
t1
set
d
=
c
;
create
table
t2
(
a
tinyint
NOT
NULL
,
b
char
(
3
));
insert
into
t2
select
b
,
c
from
t1
;
drop
table
t1
,
t2
;
#
# Test for max_error_count
#
create
table
t1
(
a
char
(
10
));
let
$
1
=
50
;
disable_query_log
;
while
(
$
1
)
{
eval
insert
into
t1
values
(
'mysql ab'
);
dec
$
1
;
}
enable_query_log
;
alter
table
t1
add
b
char
;
set
max_error_count
=
10
;
update
t1
set
b
=
a
;
select
@@
warning_count
;
#
# Test for handler type
#
create
table
t1
(
id
int
)
type
=
isam
;
create
table
t1
(
id
int
)
type
=
isam
;
alter
table
t1
type
=
isam
;
alter
table
t1
type
=
isam
;
drop
table
t1
;
drop
table
t1
;
sql/share/english/errmsg.txt
View file @
97a2c472
...
@@ -249,16 +249,32 @@
...
@@ -249,16 +249,32 @@
"Reference '%-.64s' not supported (%s)",
"Reference '%-.64s' not supported (%s)",
"Every derived table must have it's own alias",
"Every derived table must have it's own alias",
"Select %u was reduced during optimisation",
"Select %u was reduced during optimisation",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s",
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client",
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"All parts of a SPATIAL KEY must be NOT NULL",
"All parts of a SPATIAL KEY must be NOT NULL"
"COLLATION '%s' is not valid for CHARACTER SET '%s'",
"COLLATION '%s' is not valid for CHARACTER SET '%s'"
"The slave was already running",
"The slave was already running"
"The slave was already stopped",
"The slave was already stopped"
"Too big size of uncompressed data. The maximum size is %d. (probably, length of uncompressed data was corrupted)",
"Too big size of uncompressed data. The maximum size is %d. (probably, length of uncompressed data was corrupted)"
"Z_BUF_ERROR: Not enough memory available for zlib",
"Z_BUF_ERROR: Not enough memory available for zlib"
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)",
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)"
"Z_DATA_ERROR: Input data was corrupted for zlib",
"Z_DATA_ERROR: Input data was corrupted for zlib"
"%d line(s) was(were) cut by group_concat()",
"%d line(s) was(were) cut by group_concat()"<<<<<<< local sql/share/english/errmsg.txt 1.79
"Table '%-.64s' from one of SELECT's can not be used in %-.32s"
"Client does not support authentication protocol requested by server. Consider upgrading MySQL client"
"All parts of a SPATIAL KEY must be NOT NULL"
"COLLATION '%s' is not valid for CHARACTER SET '%s'"
"The slave was already running"
"The slave was already stopped"
"Too big size of uncompressed data. The maximum size is %d. (probably, length of uncompressed data was corrupted)"
"Z_BUF_ERROR: Not enough memory available for zlib"
"Z_MEM_ERROR: Not enough room in the output buffer for zlib (probably, length of uncompressed data was corrupted)"
"Z_DATA_ERROR: Input data was corrupted for zlib"
"%d line(s) was(were) cut by group_concat()";
"Record count is fewer than the column count at row %ld";
"Record count is more than the column count at row %ld";
"Data truncated, NULL supplied to NOT NULL column '%s' at row %ld";
"Data truncated, out of range for column '%s' at row %ld";
"Data truncated for column '%s' at row %ld"
"Using storage engine %s for table '%s'",
"Using storage engine %s for table '%s'",
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
"Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'",
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