Skip to content

Spring Boot 2 migration results in "Error executing DDL via JDBC Statement" #13375

@DmytroRybka

Description

@DmytroRybka

After migration to spring-boot-gradle-plugin 2.0.2 from 1.4.6 I start getting :

org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL via JDBC Statement
	at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:67) ~[hibernate-core-5.2.17.Final.jar:5.2.17.Final]
Caused by: java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: PUBLIC.USER
at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source) ~[hsqldb-2.4.0.jar:2.4.0]

With the 1.4.6 everything runs smooth.
Exception comes during db initialization with import.sql

spring:
  jpa:
    hibernate:
      ddl-auto: create

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions