Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.21.0
-
None
-
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 ??