Merge pull request #326 from CartoDB/325_fix_seq_error
Fixed a trucate problem with the seq rename
This commit is contained in:
commit
9959581b7a
@ -911,7 +911,7 @@ BEGIN
|
|||||||
INTO relseq;
|
INTO relseq;
|
||||||
-- If it's the name we want, then rename it
|
-- If it's the name we want, then rename it
|
||||||
IF relseq IS NOT NULL AND relseq = Format('%I.%I', destschema, destseq) THEN
|
IF relseq IS NOT NULL AND relseq = Format('%I.%I', destschema, destseq) THEN
|
||||||
PERFORM _CDB_SQL(Format('ALTER SEQUENCE %s RENAME TO %s_tmp', relseq, destseq), '_CDB_Rewrite_Table');
|
PERFORM _CDB_SQL(Format('ALTER SEQUENCE %s RENAME TO %I', relseq, Format('tmp_%s', destseq)), '_CDB_Rewrite_Table');
|
||||||
END IF;
|
END IF;
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user