mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed 'Unknown error' when using 'UPDATE ... LIMIT'. Bug 373
This commit is contained in:
@ -138,3 +138,15 @@ a b
|
||||
111 100
|
||||
111 100
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (
|
||||
`id_param` smallint(3) unsigned NOT NULL default '0',
|
||||
`nom_option` char(40) NOT NULL default '',
|
||||
`valid` tinyint(1) NOT NULL default '0',
|
||||
KEY `id_param` (`id_param`,`nom_option`)
|
||||
) TYPE=MyISAM;
|
||||
INSERT INTO t1 (id_param,nom_option,valid) VALUES (185,'600x1200',1);
|
||||
UPDATE t1 SET nom_option='test' WHERE id_param=185 AND nom_option='600x1200' AND valid=1 LIMIT 1;
|
||||
select * from t1;
|
||||
id_param nom_option valid
|
||||
185 test 1
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user