If you read the model of an Oracle database and then try an alterTables() with this unchanged model DDLUtils incorrectly thinks it needs to make lots of changes to the database and can corrupt the database. For instance if you do this:

Database db = platform.readModelFromDatabase("test", null, "MYSCHEMA", null);
platform.alterTables(db, false, false, false);

then DDLUtils want to make lots of changes to the database, even though you have made no changes at all.
I do NOT recommend you try this for yourself!


Tim


Reply via email to