Return the value of the nth index, '? in SQLite' and '$ in Postgres', in the prepared statement with a string 'value'.
Note, that this method can be used to get the ISO 8601 string representation of any date type column (see getDate() below).
- Parameters
-
index | [ in ] Starts at 1, count from left to right of parameter in prepared statement to extract |
pString | [ in ] Pointer to a buffer to copy the buffer into, when NULL the required size is returned in pWritten. |
cBuffer | [ in ] Number of entries in the buffer pointed to by pString. |
pWritten | [ out ] Optional can be NULL, returns the number of characters written into pString. This parameter cannot be NULL when pString is also NULL. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNoMemory | Insuffficient memory to properly initialize the component |
P6R::eInvalidArg | pString and pWritten are set to NULL. |
P6R::eTooBig | The index is greater than the last valid parameter to extract. |
P6R::eValueNULL | String has a null value. |
P6R::eTooSmall | The pString buffer is too small, the required size is set in pWritten. |