mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
Fix #18000: PK value of Oracle ActiveRecord is missing after save
This commit is contained in:
@ -13,6 +13,7 @@ Yii Framework 2 Change Log
|
||||
- Bug #17960: Fix unsigned primary key type mapping for SQLite (bizley)
|
||||
- Enh #17758: `Query::withQuery()` can be used for CTE (sartor)
|
||||
- Bug #17974: Fix ActiveRelationTrait compatibility with PHP 7.4 (Ximich)
|
||||
- Bug #18000: PK value of Oracle ActiveRecord is missing after save (mankwok)
|
||||
- Enh #18006: Allow SameSite cookie pre PHP 7.3 (scottix)
|
||||
|
||||
|
||||
|
||||
@ -614,7 +614,7 @@ SQL;
|
||||
$phName = QueryBuilder::PARAM_PREFIX . (count($params) + count($returnParams));
|
||||
$returnParams[$phName] = [
|
||||
'column' => $name,
|
||||
'value' => null,
|
||||
'value' => '',
|
||||
];
|
||||
if (!isset($columnSchemas[$name]) || $columnSchemas[$name]->phpType !== 'integer') {
|
||||
$returnParams[$phName]['dataType'] = \PDO::PARAM_STR;
|
||||
|
||||
Reference in New Issue
Block a user