Skip to content

Commit 5ae7f71

Browse files
committed
Change error message index to 1-based for bind position
1 parent fc8bdba commit 5ae7f71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/njs/src/njsConnection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ void Connection::GetInBindParamsArray(Local<Array> va8vals, Bind *bind,
14441444
executeBaton->error = NJSMessages::getErrorMsg (
14451445
errIncompatibleTypeArrayIndexBind,
14461446
index,
1447-
executeBaton->binds.size() );
1447+
executeBaton->binds.size() + 1 );
14481448
}
14491449
goto exitGetInBindParamsArray;
14501450
}
@@ -1475,7 +1475,7 @@ void Connection::GetInBindParamsArray(Local<Array> va8vals, Bind *bind,
14751475
executeBaton->error = NJSMessages::getErrorMsg (
14761476
errIncompatibleTypeArrayIndexBind,
14771477
index,
1478-
executeBaton->binds.size ());
1478+
executeBaton->binds.size () + 1);
14791479

14801480
}
14811481
goto exitGetInBindParamsArray;

0 commit comments

Comments
 (0)