Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-5583

Document - sybase 'ddl in tran' for hibernate

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • TBD
    • 4.2.RC4, EAP 5.0.1.CR1, EAP_EWP 5.1.0
    • Documentation, Hibernate
    • None
    • Documentation (Ref Guide, User Guide, etc.)
    • Not Required

      Steve, I thought it would be a good idea to move our discussion from the hibernate list here.

      To summarize allowing 'ddl in tran' for tempdb database fixes some hibernate tests. According to the sybase manual it is not good to have it enabled as it leads to locking system tables during such a transaction. So they recommend to not use if possible or only in short transactions.
      Thus I think it should be disabled for sybase at all.

      According to your mail:
      "I would guess that this because of temp tables. Hibernate allows the
      Dialect to say whether or not the database supports DDL statements
      within a transaction. Sybase does not override this; the default is to
      query the JDBC metadata to see whether DDL is allowed within
      transactions (see links below). My guess is that Sybase simply does not
      report this accurately based on whether this option you mention is set
      or not set; it probably just blindly says "yeah, we support it...". We
      can look at changing this behavior for Sybase."

      Let us know what do you think.

      Thanks,
      Aleksandar

              mistysj Misty Stanley-Jones (Inactive)
              akostadi1@redhat.com Aleksandar Kostadinov
              Misty Stanley-Jones Misty Stanley-Jones (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: