Closed andykiss closed 3 years ago
Not for me:
java -jar ili2pg-4.6.0.jar --nameByTopic --dbschema fubar --createEnumTabs --models eGRISDM11 --createscript fubar.sql
What is your command?
I've used this command today and found out that it happend with 4.4.2, 4.4.5 and 4.4.7 too:
java -jar ili2mssql-4.6.0.jar --schemaimport --dbhost myhost --dbdatabase egrisdm202110-sm1 --dbusr dbusr --dbpwd dbpasswd --createEnumTabsWithId --beautifyEnumDispName --createStdCols --t_id_Name Id --createFk --createFkIdx --createUnique --createTidCol --createBasketCol --createMetaInfo --createscript createSchema.sql --dropscript dropSchema.sql --smart1Inheritance egrisdm11hist20111103.ili
Regards, Andreas
Yes, same here. --createscript
combined with --schemaimport
seems to be the problem.
INSERT statements are doubled when a create script is created, e.g.:
This seems to come from #124 and the problem is in TransferFromIli.java as method "updateEnumEntries" creates the statement into the script but this method is called twice from each code path, e.g. in method "updateMultiEnumTableWithId"
and later