Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3453

insert into postgresql doesn't commit the transaction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.21.0
    • None
    • core
    • None

    Description

      When insert into postgresql, no row inserted.

      After inspect using wireshark, seems postgresql server rollback the insert when the connection is closing.

      The problem code is in org.apache.calcite.runtime.ResultSetEnumerable.java.

      In enumeratorBasedOnPreparedStatement the connection doesn't commit the transation. And in closeIfPossible the connection is also close without commit transation, so postgresql server rollback the insert.

      Is this a bug, or a mis-config ??

      Attachments

        Activity

          People

            Unassigned Unassigned
            zhuangdy Zhuang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: