Skip to content

Commit 284296c

Browse files
committed
Message wording consistency
1 parent 17e840c commit 284296c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1729,7 +1729,7 @@ control statement execution.
17291729
If there are no bind variables in the SQL statement, then a null
17301730
`bindParams`, for example *{}*, must be specified before `options`
17311731
otherwise you will get an error like *ORA-01036: Illegal variable
1732-
name/number* or *NJS-012: encountered invalid bind datatype*.
1732+
name/number* or *NJS-012: encountered invalid bind data type in parameter*.
17331733

17341734
The following properties can be set or overridden for the execution of
17351735
a statement.

src/njs/src/njsMessages.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static const char *errMsg[] =
4848
"NJS-009: invalid number of parameters", // errInvalidNumberOfParameters
4949
"NJS-010: unsupported data type in select list", // errUnsupportedDatType
5050
"NJS-011: encountered bind value and type mismatch in parameter %d", // errBindValueAndTypeMismatch
51-
"NJS-012: encountered invalid bind datatype in parameter %d", // errInvalidBindDataType
51+
"NJS-012: encountered invalid bind data type in parameter %d", // errInvalidBindDataType
5252
"NJS-013: invalid bind direction", // errInvalidBindDirection
5353
"NJS-014: %s is a read-only property", // errReadOnly
5454
"NJS-015: type was not specified for conversion", // errNoTypeForConversion
@@ -74,7 +74,7 @@ static const char *errMsg[] =
7474
"NJS-035: maxArraySize is required for IN OUT array bind", // errReqdMaxArraySize
7575
"NJS-036: given array is of size greater than maxArraySize", // errInvalidArraySize
7676
"NJS-037: incompatible type of value provided", // errIncompatibleTypeArrayBind
77-
"NJS-038: maxArraySize value should be greater than 0", // errInvalidValueArrayBind
77+
"NJS-038: maxArraySize value should be greater than zero", // errInvalidValueArrayBind
7878
"NJS-039: empty array is not allowed for IN bind", // errEmptyArray
7979
"NJS-040: connection request timeout", // errConnRequestTimeout
8080
"NJS-041: cannot convert ResultSet to QueryStream after invoking methods", // errCannotConvertRsToStream

0 commit comments

Comments
 (0)