mirror of
https://github.com/dimitri/pgloader.git
synced 2026-03-14 08:31:41 +01:00
Unquote names when searching for an index column name in its table.
If the source database is using a keyword (such as "order") as a column name, then pgloader is going to quote this column name in its internal catalogs. In that case, unquote the column in the pgloader catalogs when matching it against the unquoted column name we have in the index definition. Fixes #872.
This commit is contained in:
parent
ab2cadff24
commit
a939d20dff
@ -266,7 +266,9 @@
|
||||
:collect (column-type-name
|
||||
(find idx-col tbl-cols
|
||||
:test #'string-equal
|
||||
:key #'column-name))))
|
||||
:key (lambda (col)
|
||||
(ensure-unquoted
|
||||
(column-name col)))))))
|
||||
(nobtree (catalog-types-without-btree
|
||||
(schema-catalog (table-schema (index-table index))))))
|
||||
(let* ((idx-type (first idx-types))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user