Skip to content

H2 driver doesn't handle UUID_NATIVE fields, but it should #296

@lultimouomo

Description

@lultimouomo

H2 is capable of handling UUIDs natively, but usingDataType.UUID_NATIVE results in:

	java.lang.UnsupportedOperationException: UUID is not supported by this database type
		at com.j256.ormlite.db.BaseDatabaseType.appendUuidNativeType(BaseDatabaseType.java:201)
		at com.j256.ormlite.db.BaseDatabaseType.appendColumnArg(BaseDatabaseType.java:137)
		at com.j256.ormlite.table.TableUtils.addCreateTableStatements(TableUtils.java:488)
		at com.j256.ormlite.table.TableUtils.doCreateTable(TableUtils.java:368)
		at com.j256.ormlite.table.TableUtils.doCreateTable(TableUtils.java:356)
		at com.j256.ormlite.table.TableUtils.createTableIfNotExists(TableUtils.java:74)

PR #295 should fix the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions