Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-5919

Wildfly 10 CR5 Regression - Schema not added to query

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 10.0.0.CR5
    • JPA / Hibernate
    • None

      My app, working fine in Wildfly 9.0.2 now fails in 10.0.0.CR5 (it was fine in earlier CR's)

      2016-01-03 08:30:43,626 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (ServerService Thread Pool -- 87) SQL Error: 1046, SQLState: 3D000
      2016-01-03 08:30:43,626 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (ServerService Thread Pool -- 87) No database selected
      2016-01-03 08:30:43,627 INFO  [org.hibernate.event.internal.DefaultLoadEventListener] (ServerService Thread Pool -- 87) HHH000327: Error performing load command : org.hibernate.exception.GenericJDBCException: could not extract ResultSet
      

      I turned on query debug, and the query being generated is now skipping the schema name defined in my entity's schema (I'm using MySQL)

      The config looks like this

      @Table(name = "types", schema = "config")
      

      I have an orm.xml file, I tried removing the default schema stanza without luck.

            smarlow1@redhat.com Scott Marlow
            meetoblivion_jira John Ament (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: