Update test fixture for JPA and H2 to follow the only IDENTUTY syntax
that will be allowed in H2 2.x. Actually updating to H2 2.x fails and
might require an update the Eclipse JPA provider.
@@ -39,13 +39,13 @@ public class JpaH2AppenderTest extends AbstractJpaAppenderTest {
try (Statement statement = connection.createStatement()) {
statement.executeUpdate("CREATE TABLE jpaBaseLogEntry ( "
- + "id INTEGER IDENTITY, eventDate DATETIME, instant NVARCHAR(64), level NVARCHAR(10), "
+ + "id INTEGER GENERATED ALWAYS AS IDENTITY, eventDate DATETIME, instant NVARCHAR(64), level NVARCHAR(10), "
+ "logger NVARCHAR(255), message NVARCHAR(1024), exception NVARCHAR(1048576) )");
}
try (Statement statement = connection.createStatement()) {
statement.executeUpdate("CREATE TABLE jpaBasicLogEntry ( "
- + "id INTEGER IDENTITY, timemillis BIGINT, instant NVARCHAR(64), nanoTime BIGINT, "
+ + "id INTEGER GENERATED ALWAYS AS IDENTITY, timemillis BIGINT, instant NVARCHAR(64), nanoTime BIGINT, "
+ "level NVARCHAR(10), loggerName NVARCHAR(255), message NVARCHAR(1024), "
+ "thrown NVARCHAR(1048576), contextMapJson NVARCHAR(1048576), loggerFQCN NVARCHAR(1024), "
+ "contextStack NVARCHAR(1048576), marker NVARCHAR(255), source NVARCHAR(2048),"
