Apply identifier case to MS SQL column names in fkey definitions.

This is a blind fix: it looks like we forgot to take care of identifier case
when adding columns to foreign key definitions in MS SQL catalogs.

Fixes #953.
This commit is contained in:
Dimitri Fontaine 2019-04-28 22:48:07 +02:00
parent 513455f552
commit 70b6845852

View File

@ -188,8 +188,8 @@
:delete-rule fk-delete-rule))
(fkey
(maybe-add-fkey table fkey-name pg-fkey :key #'fkey-name)))
(push-to-end col (fkey-columns fkey))
(push-to-end fcol (fkey-foreign-columns fkey)))
(push-to-end (apply-identifier-case col) (fkey-columns fkey))
(push-to-end (apply-identifier-case fcol) (fkey-foreign-columns fkey)))
:finally (return catalog)))