Skip to content

Commit 115dc68

Browse files
committed
disable_partitioning() bugfix
1 parent 96fa7c3 commit 115dc68

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

init.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,15 @@ CREATE OR REPLACE FUNCTION @[email protected]_partitioning(IN relation TEXT)
120120
RETURNS VOID AS
121121
$$
122122
DECLARE
123-
parttype INTEGER;
123+
v_parttype INTEGER;
124124
BEGIN
125125
relation := @[email protected]_relname(relation);
126-
parttype := parttype FROM pathman_config WHERE relname = relation;
126+
v_parttype := parttype FROM pathman_config WHERE relname = relation;
127127

128128
DELETE FROM @[email protected]_config WHERE relname = relation;
129-
IF parttype = 1 THEN
129+
IF v_parttype = 1 THEN
130130
PERFORM @[email protected]_hash_triggers(relation);
131-
ELSIF parttype = 2 THEN
131+
ELSIF v_parttype = 2 THEN
132132
PERFORM @[email protected]_range_triggers(relation);
133133
END IF;
134134

0 commit comments

Comments
 (0)