mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
Fix #17504: Fix upsert when $updateColumns = true but there are no columns to update in the table
This commit is contained in:
committed by
Alexander Makarov
parent
f72f7c7406
commit
cdd40b8dfb
@ -32,6 +32,7 @@ DROP TABLE IF EXISTS `T_constraints_3` CASCADE;
|
||||
DROP TABLE IF EXISTS `T_constraints_2` CASCADE;
|
||||
DROP TABLE IF EXISTS `T_constraints_1` CASCADE;
|
||||
DROP TABLE IF EXISTS `T_upsert` CASCADE;
|
||||
DROP TABLE IF EXISTS `T_upsert_1`;
|
||||
|
||||
CREATE TABLE `constraints`
|
||||
(
|
||||
@ -396,3 +397,8 @@ CREATE TABLE `T_upsert`
|
||||
UNIQUE (`email`, `recovery_email`)
|
||||
)
|
||||
ENGINE = 'InnoDB' DEFAULT CHARSET = 'utf8';
|
||||
|
||||
CREATE TABLE `T_upsert_1` (
|
||||
`a` int(11) NOT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
Reference in New Issue
Block a user