Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preserve upper and lower case of an index #1521

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM debian:stable-slim as builder

RUN apt-get update && apt-get install -y wget
RUN wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb
RUN dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bzip2 \
Expand All @@ -9,7 +13,6 @@ FROM debian:stable-slim as builder
gawk \
git \
libsqlite3-dev \
libssl1.1 \
libzip-dev \
make \
openssl \
Expand Down
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