Skip to content

Commit d791f2d

Browse files
authored
Merge pull request #181 from arssher/master
Mind that build_check_constraint_name returns quoted name.
2 parents 8fe15fc + dd71813 commit d791f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hash.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ BEGIN
108108

109109
/* Fetch definition of old_partition's HASH constraint */
110110
SELECT pg_catalog.pg_get_constraintdef(oid) FROM pg_catalog.pg_constraint
111-
WHERE conrelid = old_partition AND conname = old_constr_name
111+
WHERE conrelid = old_partition AND quote_ident(conname) = old_constr_name
112112
INTO old_constr_def;
113113

114114
/* Detach old partition */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy