Commit 52c30cbc authored by npedot's avatar npedot
Browse files

upgrades log4j, sl4j, h2

parent 44c3bc23
......@@ -22,12 +22,12 @@
<jackson.version>2.12.2</jackson.version>
<jackson.databind.version>2.12.2</jackson.databind.version>
<jackson.kotlin.version>2.12.2</jackson.kotlin.version>
<slf4j.version>1.7.28</slf4j.version>
<log4j.version>2.13.3</log4j.version>
<slf4j.version>1.7.32</slf4j.version>
<log4j.version>2.16.0</log4j.version>
<woodstox.version>5.1.0</woodstox.version>
<xstream.version>1.4.11.1</xstream.version>
<postgresql.version>42.2.8</postgresql.version>
<h2.version>1.4.200</h2.version>
<h2.version>2.0.202</h2.version>
<freemarker.version>2.3.29</freemarker.version>
<liquibase.version>4.1.1</liquibase.version>
<jsqlparser.version>3.2</jsqlparser.version>
......
......@@ -19,7 +19,7 @@ fun oid(schema: Schema, originTableName: String): ChangeSet {
val originTableName2 = originTableName
// adds one column autoincrement to origin table
val sid = "sid$originTableName"
sqlCommands.add("ALTER TABLE $originTableName ADD COLUMN $sid int NOT NULL auto_increment UNIQUE")
sqlCommands.add("ALTER TABLE $originTableName ADD COLUMN $sid int auto_increment DEFAULT ON NULL")
schema.table(originTableName)!!.columns.add(Column.of(sid))
// TODO NOTA BENE !!! non togliere lo spazio iniziale altrimenti originTableName assume il valore di surrogateTableName.
schema.addSurrogateKey(" "+originTableName+":"+sid)
......
......@@ -23,7 +23,7 @@ class OidsTest {
val sqlCommands = oid(schema, originTableName).sqlCommands!!
// then
assertEquals(4,sqlCommands.size)
assertEquals("ALTER TABLE person ADD COLUMN sidperson int NOT NULL auto_increment UNIQUE",sqlCommands[0])
assertEquals("ALTER TABLE person ADD COLUMN sidperson int auto_increment DEFAULT ON NULL",sqlCommands[0])
assertEquals("CREATE TABLE SKEYperson AS SELECT sidperson,surname,name FROM person",sqlCommands[1])
// FIXME manca join name, ha preso solo surname
assertEquals("CREATE TABLE teacher_1 AS SELECT SKEYperson.sidperson,teacher.course FROM SKEYperson JOIN teacher ON SKEYperson.surname = teacher.surname",sqlCommands[2])
......@@ -123,11 +123,5 @@ table8: DepName , DepAddress
assertTrue(constraints.toString().contains("DOUBLE_INCLUSION SKEYPerson:sidPerson --> Person:sidPerson ; "))
}
@Test
fun test_three_tables() {
// given
val schema = Schema()
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment