File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 5656- Enh #432 , #433 : Update ` DMLQueryBuilder::update() ` method to adapt changes in ` yiisoft/db ` (@rustamwin , @Tigrov )
5757- Enh #439 : Move "Packets out of order" warning suppression from Yii DB (@vjik )
5858- New #448 : Add enumeration column type support (@vjik )
59+ - New #453 : Add source of column information (@Tigrov )
5960
6061## 1.2.0 March 21, 2024
6162
Original file line number Diff line number Diff line change 44
55namespace Yiisoft \Db \Mysql ;
66
7+ use Yiisoft \Db \Constant \ColumnInfoSource ;
78use Yiisoft \Db \Constant \ColumnType ;
89use Yiisoft \Db \Constant \ReferentialAction ;
910use Yiisoft \Db \Constraint \ForeignKey ;
@@ -269,7 +270,7 @@ protected function loadResultColumn(array $metadata): ?ColumnInterface
269270 default => strtolower ($ metadata ['native_type ' ]),
270271 };
271272
272- $ columnInfo = [];
273+ $ columnInfo = [' source ' => ColumnInfoSource:: QUERY_RESULT ];
273274
274275 if (!empty ($ metadata ['table ' ])) {
275276 $ columnInfo ['table ' ] = $ metadata ['table ' ];
@@ -456,6 +457,7 @@ private function loadColumn(array $info): ColumnInterface
456457 'notNull ' => $ info ['is_nullable ' ] !== 'YES ' ,
457458 'primaryKey ' => $ info ['column_key ' ] === 'PRI ' ,
458459 'schema ' => $ info ['schema ' ],
460+ 'source ' => ColumnInfoSource::TABLE_SCHEMA ,
459461 'table ' => $ info ['table ' ],
460462 'unique ' => $ info ['column_key ' ] === 'UNI ' ,
461463 ];
You can’t perform that action at this time.
0 commit comments