2003-09-29 11:31:35 +02:00
|
|
|
drop table if exists t1,t2;
|
2001-09-28 07:05:54 +02:00
|
|
|
create table t1 (a int not null);
|
|
|
|
insert into t1 values (1);
|
|
|
|
insert into t1 values (a+2);
|
|
|
|
insert into t1 values (a+3);
|
|
|
|
insert into t1 values (4),(a+5);
|
|
|
|
select * from t1;
|
2000-12-28 02:56:38 +01:00
|
|
|
a
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
4
|
|
|
|
5
|
2001-09-28 07:05:54 +02:00
|
|
|
drop table t1;
|
|
|
|
create table t1 (id int not null auto_increment primary key, username varchar(32) not null, unique (username));
|
|
|
|
insert into t1 values (0,"mysql");
|
|
|
|
insert into t1 values (0,"mysql ab");
|
|
|
|
insert into t1 values (0,"mysql a");
|
|
|
|
insert into t1 values (0,"r1manic");
|
|
|
|
insert into t1 values (0,"r1man");
|
|
|
|
drop table t1;
|
2002-08-08 02:12:02 +02:00
|
|
|
create table t1 (a int not null auto_increment, primary key (a), t timestamp, c char(10) default "hello", i int);
|
|
|
|
insert into t1 values (default,default,default,default), (default,default,default,default), (4,0,"a",5),(default,default,default,default);
|
|
|
|
select a,t>0,c,i from t1;
|
|
|
|
a t>0 c i
|
|
|
|
1 1 hello NULL
|
|
|
|
2 1 hello NULL
|
|
|
|
4 0 a 5
|
|
|
|
5 1 hello NULL
|
2002-07-25 00:00:56 +02:00
|
|
|
truncate table t1;
|
|
|
|
insert into t1 set a=default,t=default,c=default;
|
2002-08-08 02:12:02 +02:00
|
|
|
insert into t1 set a=default,t=default,c=default,i=default;
|
|
|
|
insert into t1 set a=4,t=0,c="a",i=5;
|
|
|
|
insert into t1 set a=5,t=0,c="a",i=null;
|
|
|
|
insert into t1 set a=default,t=default,c=default,i=default;
|
|
|
|
select a,t>0,c,i from t1;
|
|
|
|
a t>0 c i
|
|
|
|
1 1 hello NULL
|
|
|
|
2 1 hello NULL
|
|
|
|
4 0 a 5
|
|
|
|
5 0 a NULL
|
|
|
|
6 1 hello NULL
|
2002-07-25 00:00:56 +02:00
|
|
|
drop table t1;
|
2002-09-18 20:04:49 +02:00
|
|
|
create table t1 (sid char(20), id int(2) NOT NULL auto_increment, key(sid, id));
|
|
|
|
insert into t1 values ('skr',NULL),('skr',NULL),('test',NULL);
|
|
|
|
select * from t1;
|
|
|
|
sid id
|
|
|
|
skr 1
|
2002-12-14 11:45:31 +01:00
|
|
|
skr 2
|
2002-12-11 14:46:39 +01:00
|
|
|
test 1
|
|
|
|
insert into t1 values ('rts',NULL),('rts',NULL),('test',NULL);
|
|
|
|
select * from t1;
|
|
|
|
sid id
|
|
|
|
rts 1
|
|
|
|
rts 2
|
|
|
|
skr 1
|
2002-12-14 11:45:31 +01:00
|
|
|
skr 2
|
2002-09-18 20:04:49 +02:00
|
|
|
test 1
|
2002-12-11 14:46:39 +01:00
|
|
|
test 2
|
2002-09-18 20:04:49 +02:00
|
|
|
drop table t1;
|
2003-06-24 07:53:21 +02:00
|
|
|
create table t1 (id int NOT NULL DEFAULT 8);
|
|
|
|
insert into t1 values(NULL);
|
2003-08-18 23:08:08 +02:00
|
|
|
ERROR 23000: Column 'id' cannot be null
|
2003-06-24 07:53:21 +02:00
|
|
|
insert into t1 values (1), (NULL), (2);
|
2003-08-18 23:08:08 +02:00
|
|
|
Warnings:
|
After merge fixes
Added more DBUG statements
Ensure that we are comparing end space with BINARY strings
Use 'any_db' instead of '' to mean any database. (For HANDLER command)
Only strip ' ' when comparing CHAR, not other space-like characters (like \t)
BitKeeper/deleted/.del-ctype_tis620.result-old~3578ceb0b8284685:
Delete: mysql-test/r/ctype_tis620.result-old
BitKeeper/deleted/.del-ctype_tis620.test-old~ffb1bbd2935d1aba:
Delete: mysql-test/t/ctype_tis620.test-old
client/mysqlbinlog.cc:
Added DBUG statements
Added call of my_end() to free all used memory on exit
heap/hp_info.c:
After merge fixes
heap/hp_open.c:
After merge fixes
include/heap.h:
After merge fixes
include/m_ctype.h:
Use pchar instead of 'int' for character parameters.
Added 'my_binary_compare()'
include/m_string.h:
Fixed wrong define
innobase/ibuf/ibuf0ibuf.c:
After merge fixes
innobase/srv/srv0start.c:
After merge fixes
mysql-test/r/alter_table.result:
Fixed results after merge
mysql-test/r/auto_increment.result:
Fixed results after merge
mysql-test/r/bdb.result:
Fixed results after merge
mysql-test/r/binary.result:
Fixed results after merge
mysql-test/r/create.result:
Fixed results after merge
mysql-test/r/ctype_mb.result:
Fixed results after merge
mysql-test/r/ctype_tis620.result:
Fixed results after merge
mysql-test/r/ctype_utf8.result:
Fixed results after merge
mysql-test/r/delete.result:
Fixed results after merge
mysql-test/r/func_compress.result:
Fixed results after merge
mysql-test/r/func_gconcat.result:
Fixed results after merge
mysql-test/r/func_group.result:
Fixed results after merge
mysql-test/r/func_str.result:
Fixed results after merge
mysql-test/r/innodb.result:
Fixed results after merge
mysql-test/r/insert.result:
Fixed results after merge
mysql-test/r/insert_select.result:
Fixed results after merge
mysql-test/r/key.result:
Fixed results after merge
mysql-test/r/loaddata.result:
Fixed results after merge
mysql-test/r/lock.result:
Fixed results after merge
mysql-test/r/myisam.result:
Fixed results after merge
mysql-test/r/null.result:
Fixed results after merge
mysql-test/r/null_key.result:
Fixed results after merge
mysql-test/r/order_by.result:
Fixed results after merge
mysql-test/r/query_cache.result:
Fixed results after merge
mysql-test/r/range.result:
Fixed results after merge
mysql-test/r/rpl_multi_delete.result:
Fixed results after merge
mysql-test/r/rpl_until.result:
Fixed results after merge
mysql-test/r/subselect.result:
Fixed results after merge
mysql-test/r/subselect_innodb.result:
Fixed results after merge
mysql-test/r/type_blob.result:
Fixed results after merge
mysql-test/r/type_datetime.result:
Fixed results after merge
mysql-test/r/type_decimal.result:
Fixed results after merge
mysql-test/r/type_enum.result:
Fixed results after merge
mysql-test/r/type_float.result:
Fixed results after merge
mysql-test/r/type_ranges.result:
Fixed results after merge
mysql-test/r/type_time.result:
Fixed results after merge
mysql-test/r/type_timestamp.result:
Fixed results after merge
mysql-test/r/type_uint.result:
Fixed results after merge
mysql-test/r/type_year.result:
Fixed results after merge
mysql-test/r/variables.result:
Fixed results after merge
mysql-test/r/warnings.result:
Fixed results after merge
mysql-test/t/case.test:
Fixed shifted error messages
mysql-test/t/create.test:
Fixed shifted error messages
mysql-test/t/ctype_collate.test:
Fixed shifted error messages
mysql-test/t/ctype_tis620.test:
Merge with 4.0 ctype_tis620 test
mysql-test/t/delete.test:
Fixed shifted error messages
mysql-test/t/derived.test:
Fixed shifted error messages
mysql-test/t/fulltext.test:
Fixed shifted error messages
mysql-test/t/func_in.test:
Fixed shifted error messages
mysql-test/t/func_str.test:
Fixed shifted error messages
mysql-test/t/func_test.test:
Fixed shifted error messages
mysql-test/t/grant.test:
Fixed shifted error messages
mysql-test/t/innodb.test:
Change to 4.1 syntax
mysql-test/t/key_cache.test:
Fixed shifted error messages
mysql-test/t/myisam.test:
New test of blob and end space
mysql-test/t/row.test:
Fixed shifted error messages
mysql-test/t/rpl_until.test:
Fixed shifted error messages
mysql-test/t/subselect.test:
Fixed shifted error messages
mysql-test/t/subselect_innodb.test:
Fix test to take into account foreign key constraints
mysql-test/t/union.test:
Fixed shifted error messages
mysql-test/t/user_var.test:
Fixed shifted error messages
mysql-test/t/variables.test:
Fixed shifted error messages
mysys/my_handler.c:
Merge with 4.0 code
sql/ha_heap.cc:
After merge fixes
sql/handler.cc:
After merge fixes
sql/item.cc:
After merge fixes
sql/item_cmpfunc.cc:
Ensure that we are comparing end space with BINARY strings
sql/item_cmpfunc.h:
Ensure that we are comparing end space with BINARY strings
sql/log_event.cc:
More DBUG statements
Ensure that we use all options to LOAD DATA in replication
sql/opt_range.cc:
After merge fixes
sql/sql_db.cc:
After merge fixes
sql/sql_handler.cc:
After merge fixes
Use 'any_db' instead of '' to mean 'no database comparison'
sql/sql_parse.cc:
After merge fixes
sql/sql_select.cc:
After merge fixes
Added function comment for setup_group()
sql/sql_string.cc:
Added stringcmp() for binary comparison.
Added function comments for sortcmp() and stringcmp()
sql/sql_string.h:
Added stringcmp()
sql/sql_table.cc:
After merge fixes
sql/sql_update.cc:
After merge fixes
sql/sql_yacc.yy:
Use 'any_db' instead of '' to mean any database. Using "" causes a 'wrong db name' error.
strings/ctype-big5.c:
Strip only end space, not other space characters.
strings/ctype-bin.c:
Removed some not needed functions.
Added function comments
Don't remove end space in comparisons
Change my_wildcmp_bin() to be 'identical' with other similar code
strings/ctype-czech.c:
Strip only end space, not other space characters.
strings/ctype-gbk.c:
Strip only end space, not other space characters.
strings/ctype-latin1.c:
Strip only end space, not other space characters.
strings/ctype-mb.c:
Strip only end space, not other space characters.
strings/ctype-simple.c:
Strip only end space, not other space characters.
strings/ctype-sjis.c:
Strip only end space, not other space characters.
strings/ctype-tis620.c:
Added usage of my_instr_simple. This needs to be cleaned up!
strings/ctype-utf8.c:
Strip only end space, not other space characters.
strings/ctype-win1250ch.c:
Strip only end space, not other space characters.
Fixed indentation
strings/strto.c:
Code cleanup
2004-02-16 09:03:25 +01:00
|
|
|
Warning 1263 Data truncated, NULL supplied to NOT NULL column 'id' at row 2
|
2003-06-24 07:53:21 +02:00
|
|
|
select * from t1;
|
|
|
|
id
|
|
|
|
1
|
2003-07-01 13:38:38 +02:00
|
|
|
0
|
2003-06-24 07:53:21 +02:00
|
|
|
2
|
|
|
|
drop table t1;
|
2003-09-29 11:31:35 +02:00
|
|
|
create table t1 (email varchar(50));
|
|
|
|
insert into t1 values ('sasha@mysql.com'),('monty@mysql.com'),('foo@hotmail.com'),('foo@aol.com'),('bar@aol.com');
|
|
|
|
create table t2(id int not null auto_increment primary key, t2 varchar(50), unique(t2));
|
2003-12-14 05:39:52 +01:00
|
|
|
insert delayed into t2 (t2) select distinct substring(email, locate('@', email)+1) from t1;
|
2003-09-29 11:31:35 +02:00
|
|
|
select * from t2;
|
|
|
|
id t2
|
|
|
|
1 mysql.com
|
|
|
|
2 hotmail.com
|
|
|
|
3 aol.com
|
|
|
|
drop table t1,t2;
|
|
|
|
drop database if exists mysqltest;
|
|
|
|
create database mysqltest;
|
|
|
|
use mysqltest;
|
2002-07-25 00:00:56 +02:00
|
|
|
create table t1 (c int);
|
2003-09-29 11:31:35 +02:00
|
|
|
insert into mysqltest.t1 set mysqltest.t1.c = '1';
|
|
|
|
drop database mysqltest;
|
2004-03-04 18:08:14 +01:00
|
|
|
use test;
|
|
|
|
create table t1(
|
|
|
|
`number ` int auto_increment primary key,
|
|
|
|
`original_value ` varchar(50),
|
|
|
|
`f_double ` double,
|
|
|
|
`f_float ` float,
|
|
|
|
`f_double_7_2 ` double(7,2),
|
|
|
|
`f_float_4_3 ` float (4,3),
|
|
|
|
`f_double_u ` double unsigned,
|
|
|
|
`f_float_u ` float unsigned,
|
|
|
|
`f_double_15_1_u ` double(15,1) unsigned,
|
|
|
|
`f_float_3_1_u ` float (3,1) unsigned
|
|
|
|
);
|
|
|
|
set @value= "aa";
|
|
|
|
insert into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
|
|
|
|
Warnings:
|
|
|
|
Warning 1265 Data truncated for column 'f_double ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_7_2 ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float_4_3 ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_u ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float_u ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_15_1_u ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float_3_1_u ' at row 1
|
|
|
|
select * from t1 where `number `=last_insert_id();
|
|
|
|
number 1
|
|
|
|
original_value aa
|
|
|
|
f_double 0
|
|
|
|
f_float 0
|
|
|
|
f_double_7_2 0.00
|
|
|
|
f_float_4_3 0.000
|
|
|
|
f_double_u 0
|
|
|
|
f_float_u 0
|
|
|
|
f_double_15_1_u 0.0
|
|
|
|
f_float_3_1_u 0.0
|
|
|
|
set @value= "1aa";
|
|
|
|
insert into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
|
|
|
|
Warnings:
|
|
|
|
Warning 1265 Data truncated for column 'f_double ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_7_2 ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float_4_3 ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_u ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float_u ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_15_1_u ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float_3_1_u ' at row 1
|
|
|
|
select * from t1 where `number `=last_insert_id();
|
|
|
|
number 2
|
|
|
|
original_value 1aa
|
|
|
|
f_double 1
|
|
|
|
f_float 1
|
|
|
|
f_double_7_2 1.00
|
|
|
|
f_float_4_3 1.000
|
|
|
|
f_double_u 1
|
|
|
|
f_float_u 1
|
|
|
|
f_double_15_1_u 1.0
|
|
|
|
f_float_3_1_u 1.0
|
|
|
|
set @value= "aa1";
|
|
|
|
insert into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
|
|
|
|
Warnings:
|
|
|
|
Warning 1265 Data truncated for column 'f_double ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_7_2 ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float_4_3 ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_u ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float_u ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_15_1_u ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float_3_1_u ' at row 1
|
|
|
|
select * from t1 where `number `=last_insert_id();
|
|
|
|
number 3
|
|
|
|
original_value aa1
|
|
|
|
f_double 0
|
|
|
|
f_float 0
|
|
|
|
f_double_7_2 0.00
|
|
|
|
f_float_4_3 0.000
|
|
|
|
f_double_u 0
|
|
|
|
f_float_u 0
|
|
|
|
f_double_15_1_u 0.0
|
|
|
|
f_float_3_1_u 0.0
|
|
|
|
set @value= "1e+1111111111a";
|
|
|
|
insert into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
|
|
|
|
Warnings:
|
|
|
|
Warning 1265 Data truncated for column 'f_double ' at row 1
|
2004-03-06 00:00:21 +01:00
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double ' at row 1
|
2004-03-04 18:08:14 +01:00
|
|
|
Warning 1265 Data truncated for column 'f_float ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_7_2 ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_7_2 ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float_4_3 ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_4_3 ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_u ' at row 1
|
2004-03-06 00:00:21 +01:00
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_u ' at row 1
|
2004-03-04 18:08:14 +01:00
|
|
|
Warning 1265 Data truncated for column 'f_float_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_u ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_15_1_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_15_1_u ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float_3_1_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_3_1_u ' at row 1
|
|
|
|
select * from t1 where `number `=last_insert_id();
|
|
|
|
number 4
|
|
|
|
original_value 1e+1111111111a
|
|
|
|
f_double 1.79769313486232e+308
|
|
|
|
f_float 3.40282e+38
|
|
|
|
f_double_7_2 99999.99
|
|
|
|
f_float_4_3 9.999
|
|
|
|
f_double_u 1.79769313486232e+308
|
|
|
|
f_float_u 3.40282e+38
|
|
|
|
f_double_15_1_u 99999999999999.9
|
|
|
|
f_float_3_1_u 99.9
|
|
|
|
set @value= "-1e+1111111111a";
|
|
|
|
insert into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
|
|
|
|
Warnings:
|
|
|
|
Warning 1265 Data truncated for column 'f_double ' at row 1
|
2004-03-06 00:00:21 +01:00
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double ' at row 1
|
2004-03-04 18:08:14 +01:00
|
|
|
Warning 1265 Data truncated for column 'f_float ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_7_2 ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_7_2 ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float_4_3 ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_4_3 ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_u ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_u ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_double_15_1_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_15_1_u ' at row 1
|
|
|
|
Warning 1265 Data truncated for column 'f_float_3_1_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_3_1_u ' at row 1
|
|
|
|
select * from t1 where `number `=last_insert_id();
|
|
|
|
number 5
|
|
|
|
original_value -1e+1111111111a
|
|
|
|
f_double -1.79769313486232e+308
|
|
|
|
f_float -3.40282e+38
|
|
|
|
f_double_7_2 -99999.99
|
|
|
|
f_float_4_3 -9.999
|
|
|
|
f_double_u 0
|
|
|
|
f_float_u 0
|
|
|
|
f_double_15_1_u 0.0
|
|
|
|
f_float_3_1_u 0.0
|
|
|
|
set @value= 1e+1111111111;
|
|
|
|
insert into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
|
|
|
|
Warnings:
|
2004-03-06 00:00:21 +01:00
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double ' at row 1
|
2004-03-04 18:08:14 +01:00
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_7_2 ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_4_3 ' at row 1
|
2004-03-06 00:00:21 +01:00
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_u ' at row 1
|
2004-03-04 18:08:14 +01:00
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_15_1_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_3_1_u ' at row 1
|
|
|
|
select * from t1 where `number `=last_insert_id();
|
|
|
|
number 6
|
2004-03-06 00:00:21 +01:00
|
|
|
original_value inf
|
2004-03-04 18:08:14 +01:00
|
|
|
f_double 1.79769313486232e+308
|
|
|
|
f_float 3.40282e+38
|
|
|
|
f_double_7_2 99999.99
|
|
|
|
f_float_4_3 9.999
|
|
|
|
f_double_u 1.79769313486232e+308
|
|
|
|
f_float_u 3.40282e+38
|
|
|
|
f_double_15_1_u 99999999999999.9
|
|
|
|
f_float_3_1_u 99.9
|
|
|
|
set @value= -1e+1111111111;
|
|
|
|
insert into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
|
|
|
|
Warnings:
|
2004-03-06 00:00:21 +01:00
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double ' at row 1
|
2004-03-04 18:08:14 +01:00
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_7_2 ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_4_3 ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_15_1_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_3_1_u ' at row 1
|
|
|
|
select * from t1 where `number `=last_insert_id();
|
|
|
|
number 7
|
2004-03-06 00:00:21 +01:00
|
|
|
original_value -inf
|
2004-03-04 18:08:14 +01:00
|
|
|
f_double -1.79769313486232e+308
|
|
|
|
f_float -3.40282e+38
|
|
|
|
f_double_7_2 -99999.99
|
|
|
|
f_float_4_3 -9.999
|
|
|
|
f_double_u 0
|
|
|
|
f_float_u 0
|
|
|
|
f_double_15_1_u 0.0
|
|
|
|
f_float_3_1_u 0.0
|
|
|
|
set @value= 1e+111;
|
|
|
|
insert into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
|
|
|
|
Warnings:
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_7_2 ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_4_3 ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_15_1_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_3_1_u ' at row 1
|
|
|
|
select * from t1 where `number `=last_insert_id();
|
|
|
|
number 8
|
|
|
|
original_value 1e+111
|
|
|
|
f_double 1e+111
|
|
|
|
f_float 3.40282e+38
|
|
|
|
f_double_7_2 99999.99
|
|
|
|
f_float_4_3 9.999
|
|
|
|
f_double_u 1e+111
|
|
|
|
f_float_u 3.40282e+38
|
|
|
|
f_double_15_1_u 99999999999999.9
|
|
|
|
f_float_3_1_u 99.9
|
|
|
|
set @value= -1e+111;
|
|
|
|
insert into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
|
|
|
|
Warnings:
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_7_2 ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_4_3 ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_15_1_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_3_1_u ' at row 1
|
|
|
|
select * from t1 where `number `=last_insert_id();
|
|
|
|
number 9
|
|
|
|
original_value -1e+111
|
|
|
|
f_double -1e+111
|
|
|
|
f_float -3.40282e+38
|
|
|
|
f_double_7_2 -99999.99
|
|
|
|
f_float_4_3 -9.999
|
|
|
|
f_double_u 0
|
|
|
|
f_float_u 0
|
|
|
|
f_double_15_1_u 0.0
|
|
|
|
f_float_3_1_u 0.0
|
|
|
|
set @value= 1;
|
|
|
|
insert into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
|
|
|
|
select * from t1 where `number `=last_insert_id();
|
|
|
|
number 10
|
|
|
|
original_value 1
|
|
|
|
f_double 1
|
|
|
|
f_float 1
|
|
|
|
f_double_7_2 1.00
|
|
|
|
f_float_4_3 1.000
|
|
|
|
f_double_u 1
|
|
|
|
f_float_u 1
|
|
|
|
f_double_15_1_u 1.0
|
|
|
|
f_float_3_1_u 1.0
|
|
|
|
set @value= -1;
|
|
|
|
insert into t1 values(null,@value,@value,@value,@value,@value,@value,@value,@value,@value);
|
|
|
|
Warnings:
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_double_15_1_u ' at row 1
|
|
|
|
Warning 1264 Data truncated, out of range for column 'f_float_3_1_u ' at row 1
|
|
|
|
select * from t1 where `number `=last_insert_id();
|
|
|
|
number 11
|
|
|
|
original_value -1
|
|
|
|
f_double -1
|
|
|
|
f_float -1
|
|
|
|
f_double_7_2 -1.00
|
|
|
|
f_float_4_3 -1.000
|
|
|
|
f_double_u 0
|
|
|
|
f_float_u 0
|
|
|
|
f_double_15_1_u 0.0
|
|
|
|
f_float_3_1_u 0.0
|
|
|
|
drop table t1;
|