Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d791f2d

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎hash.sql

Copy file name to clipboardExpand all lines: hash.sql
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.