enterprise-support team mailing list archive
-
enterprise-support team
-
Mailing list archive
-
Message #06495
[Bug 1700652] [NEW] Silent UNSIGNED - SIGNED conversion with STRICT mode
Public bug reported:
Description:
With STRICT mode if stored routine called with unsigned int argument and tries to use it update signed column in a table update succeeds and no warning issued.
How to repeat:
set sql_mode='strict_all_tables';
Warnings:
Warning 3135 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
Warning 3090 Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release.
create table t1(f1 int) engine=innodb;
delimiter |
create procedure p1(v1 int unsigned)
begin
insert into t1 values(v1);
end
|
delimiter ;
call p1(2280017636);
select * from t1;
f1
-2014949660
drop procedure p1;
drop table t1;
** Affects: mysql-server
Importance: Unknown
Status: Unknown
** Affects: percona-server
Importance: Undecided
Status: Confirmed
** Affects: percona-server/5.5
Importance: Undecided
Status: Confirmed
** Affects: percona-server/5.6
Importance: Undecided
Status: Confirmed
** Affects: percona-server/5.7
Importance: Undecided
Status: Confirmed
** Tags: i194668 upstream
** Also affects: percona-server/5.6
Importance: Undecided
Status: New
** Also affects: percona-server/5.5
Importance: Undecided
Status: New
** Also affects: percona-server/5.7
Importance: Undecided
Status: Confirmed
** Changed in: percona-server/5.6
Status: New => Confirmed
** Changed in: percona-server/5.5
Status: New => Confirmed
** Bug watch added: MySQL Bug System #86830
http://bugs.mysql.com/bug.php?id=86830
** Also affects: mysql-server via
http://bugs.mysql.com/bug.php?id=86830
Importance: Unknown
Status: Unknown
** Tags added: upstream
--
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to MySQL.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1700652
Title:
Silent UNSIGNED - SIGNED conversion with STRICT mode
To manage notifications about this bug go to:
https://bugs.launchpad.net/mysql-server/+bug/1700652/+subscriptions
Follow ups