Skip to content

Migrating 2.0.201 to 2.0.203-Snapshot: Table "SYSTEM_LOB_STREAM" already exists #3257

@manticore-projects

Description

@manticore-projects

Greetings!

I have a valid 2.0.201 DB which I wanted to migrate to latest 2.0.203 GIT Snapshot. Normal "Export to Script and Create DB from Script" route. Export to script worked well, but create from script fails:

    [java] Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "SYSTEM_LOB_STREAM" already exists; SQL statement:
     [java]            
     [java] CREATE CACHED TABLE "PUBLIC"."SYSTEM_LOB_STREAM"(
     [java]     "ID" INTEGER SELECTIVITY 1 NOT NULL,
     [java]     "PART" INTEGER SELECTIVITY 99 NOT NULL,
     [java]     "CDATA" CHARACTER VARYING SELECTIVITY 1,
     [java]     "BDATA" BINARY VARYING SELECTIVITY 100
     [java] ) [42101-203]
     [java] 	at org.h2.message.DbException.getJdbcSQLException(DbException.java:521)
     [java] 	at org.h2.message.DbException.getJdbcSQLException(DbException.java:496)
     [java] 	at org.h2.message.DbException.get(DbException.java:227)
     [java] 	at org.h2.message.DbException.get(DbException.java:203)
     [java] 	at org.h2.command.ddl.CreateTable.update(CreateTable.java:88)
     [java] 	at org.h2.command.CommandContainer.update(CommandContainer.java:173)
     [java] 	at org.h2.command.Command.executeUpdate(Command.java:247)
     [java] 	at org.h2.command.dml.RunScriptCommand.execute(RunScriptCommand.java:111)
     [java] 	at org.h2.command.dml.RunScriptCommand.update(RunScriptCommand.java:73)
     [java] 	at org.h2.command.CommandContainer.update(CommandContainer.java:173)
     [java] 	at org.h2.command.Command.executeUpdate(Command.java:247)
     [java] 	at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:252)
     [java] 	at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:223)
     [java] 	at com.manticore.h2.H2MigrationTool.createFromScript(H2MigrationTool.java:802)
     [java] 	at com.manticore.h2.H2MigrationTool.migrate(H2MigrationTool.java:913)

"QUIRKS MODE" has been activated, as well as "Convert BINARY to VARBINARY".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions