Skip to content

Commit

Permalink
use original index name case sensitive in pgsql
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaigut committed Aug 25, 2023
1 parent 999791d commit 25d8339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pgsql/pgsql-ddl.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
;; LOCK on the table before we have the index done already
(or (index-sql index)
(format stream
"CREATE UNIQUE INDEX ~a ON ~a (~{~a~^, ~})~@[ WHERE ~a~];"
"CREATE UNIQUE INDEX \"~a\" ON ~a (~{~a~^, ~})~@[ WHERE ~a~];"
index-name
(format-table-name table)
(index-columns index)
Expand All @@ -224,7 +224,7 @@
(multiple-value-bind (access-method expression)
(index-access-method index)
(format stream
"CREATE~:[~; UNIQUE~] INDEX ~a ON ~a ~@[USING ~a~](~{~a~^, ~})~@[ WHERE ~a~];"
"CREATE~:[~; UNIQUE~] INDEX \"~a\" ON ~a ~@[USING ~a~](~{~a~^, ~})~@[ WHERE ~a~];"
(index-unique index)
index-name
(format-table-name table)
Expand Down

0 comments on commit 25d8339

Please sign in to comment.