Skip to content

Commit 7dc2f72

Browse files
committed
Fix DML Returning error handling
1 parent 1e8d7c5 commit 7dc2f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/njs/src/njsConnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ void Connection::Async_Execute (uv_work_t *req)
816816
// In Case of DML Returning, if the buffer is small, and if the callback
817817
// is called multiple times, an ORA error 24343 was reported. Converting
818818
// that error to errInsufficientBufferForBinds.
819-
if ( !executeBaton->stmtIsReturning &&
819+
if ( !executeBaton->stmtIsReturning ||
820820
(e.errnum() != 24343) )
821821
{
822822
executeBaton->error = std::string(e.what ());

0 commit comments

Comments
 (0)