mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 22:32:40 +08:00
Fix #18508: Fix Postgres SQL query for load table indexes with correct column order
This commit is contained in:
@ -20,6 +20,7 @@ Yii Framework 2 Change Log
|
|||||||
- Enh #18487: Allow creating URLs for non-GET-verb rules (bizley)
|
- Enh #18487: Allow creating URLs for non-GET-verb rules (bizley)
|
||||||
- Bug #8750: Fix MySQL support when running in `ANSI`/`ANSI_QUOTES` modes (brandonkelly)
|
- Bug #8750: Fix MySQL support when running in `ANSI`/`ANSI_QUOTES` modes (brandonkelly)
|
||||||
- Bug #18505: Fixed `yii\helpers\ArrayHelper::getValue()` for ArrayAccess objects with explicitly defined properties (samdark)
|
- Bug #18505: Fixed `yii\helpers\ArrayHelper::getValue()` for ArrayAccess objects with explicitly defined properties (samdark)
|
||||||
|
- Bug #18508: Fix Postgres SQL query for load table indexes with correct column order (insolita)
|
||||||
- Enh #18518: Add support for ngrok’s `X-Original-Host` header (brandonkelly)
|
- Enh #18518: Add support for ngrok’s `X-Original-Host` header (brandonkelly)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -232,7 +232,7 @@ INNER JOIN "pg_index" AS "i"
|
|||||||
INNER JOIN "pg_class" AS "ic"
|
INNER JOIN "pg_class" AS "ic"
|
||||||
ON "ic"."oid" = "i"."indexrelid"
|
ON "ic"."oid" = "i"."indexrelid"
|
||||||
INNER JOIN "pg_attribute" AS "ia"
|
INNER JOIN "pg_attribute" AS "ia"
|
||||||
ON "ia"."attrelid" = "i"."indrelid" AND "ia"."attnum" = ANY ("i"."indkey")
|
ON "ia"."attrelid" = "i"."indexrelid"
|
||||||
WHERE "tcns"."nspname" = :schemaName AND "tc"."relname" = :tableName
|
WHERE "tcns"."nspname" = :schemaName AND "tc"."relname" = :tableName
|
||||||
ORDER BY "ia"."attnum" ASC
|
ORDER BY "ia"."attnum" ASC
|
||||||
SQL;
|
SQL;
|
||||||
|
|||||||
Reference in New Issue
Block a user