apgdiff icon indicating copy to clipboard operation
apgdiff copied to clipboard

Cannot find object 'if' for statement 'ALTER TABLE IF EXISTS ONLY

Open wikkid opened this issue 5 years ago • 1 comments

Would be great if you will look at this (v.2.6):

Exception in thread "main" java.lang.RuntimeException: Cannot find object 'if' for statement 'ALTER TABLE IF EXISTS ONLY public.xxxxx_xxxxx DROP CONSTRAINT IF EXISTS xxxxx_xxxxx_uip_id_d3dcc455_fk_xxxxx_app;'.
	at cz.startnet.utils.pgdiff.parsers.AlterRelationParser.parse(AlterRelationParser.java:74)
	at cz.startnet.utils.pgdiff.loader.PgDumpLoader.loadDatabaseSchema(PgDumpLoader.java:239)
	at cz.startnet.utils.pgdiff.loader.PgDumpLoader.loadDatabaseSchema(PgDumpLoader.java:311)
	at cz.startnet.utils.pgdiff.PgDiff.createDiff(PgDiff.java:35)
	at cz.startnet.utils.pgdiff.Main.main(Main.java:39)

Thank you!

wikkid avatar Mar 15 '19 09:03 wikkid

Can you provide the script or a example to help with the tests?

jalissonmello avatar Apr 17 '19 23:04 jalissonmello