Skip to content

Commit 812c6aa

Browse files
committed
DML Returning condition was wrong while checking for DATE/TIMESTAMP column
1 parent 32b80ec commit 812c6aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/njs/src/njsConnection.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,8 @@ void Connection::PrepareAndBind (eBaton* executeBaton)
862862
* return error in that case
863863
*/
864864
if ( executeBaton->stmtIsReturning &&
865-
(executeBaton->binds[index]->type == DpiTimestampLTZ ) )
865+
((executeBaton->binds[index]->type == DpiTimestampLTZ) &&
866+
(executeBaton->binds[index]->isOut) ))
866867
{
867868
executeBaton->error = NJSMessages::getErrorMsg (
868869
errInvalidBindDataType, 2);

0 commit comments

Comments
 (0)