File tree Expand file tree Collapse file tree 4 files changed +138
-269
lines changed Expand file tree Collapse file tree 4 files changed +138
-269
lines changed Original file line number Diff line number Diff line change 19
19
- Bug #285 : Fix ` DMLQueryBuilder::insertBatch() ` method (@Tigrov )
20
20
- Enh #283 : Refactor ` Dsn ` class (@Tigrov )
21
21
- Enh #286 : Use constructor to create columns and initialize properties (@Tigrov )
22
- - Enh #288 : Refactor ` Schema::findColumns() ` method (@Tigrov )
22
+ - Enh #288 , # 317 : Refactor ` Schema::findColumns() ` method (@Tigrov )
23
23
- Enh #289 : Refactor ` Schema::normalizeDefaultValue() ` method and move it to ` ColumnFactory ` class (@Tigrov )
24
24
- New #292 : Override ` QueryBuilder::prepareBinary() ` method (@Tigrov )
25
25
- Chg #294 : Update ` QueryBuilder ` constructor (@Tigrov )
Original file line number Diff line number Diff line change @@ -337,7 +337,9 @@ protected function findColumns(TableSchemaInterface $table): bool
337
337
AND ACC2.COLUMN_NAME != ACC.COLUMN_NAME
338
338
WHERE AC.OWNER = :schemaName2
339
339
AND AC.TABLE_NAME = :tableName2
340
- AND (AC.CONSTRAINT_TYPE = 'P' OR AC.CONSTRAINT_TYPE IN ('U', 'C') AND ACC2.COLUMN_NAME IS NULL)
340
+ AND (AC.CONSTRAINT_TYPE = 'P'
341
+ OR AC.CONSTRAINT_TYPE = 'U' AND ACC2.COLUMN_NAME IS NULL
342
+ OR AC.CONSTRAINT_TYPE = 'C' AND ACC2.COLUMN_NAME IS NULL AND AC.SEARCH_CONDITION_VC != '"' || ACC.COLUMN_NAME || '" IS NOT NULL')
341
343
)
342
344
SELECT
343
345
A.COLUMN_NAME,
You can’t perform that action at this time.
0 commit comments