Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IDBCStmt::bindBlob ( P6UINT32  index,
P6UINT8 pBlob,
P6UINT32  length 
)
pure virtual

Replace the nth index, '? in SQLite' and '$ in Postgres', in the prepared statement with the string.

For Postgresql8, use this method to bind to the postgres 'bytea' type since 'blob' types are not directly supported.

Parameters
index[ in ] Starts at 1, count from left to right of parameter to replace
pBlob[ in ] An array of bytes to be placed into the prepared SQL statement
length[ in ] The number of bytes pointed to by pBlob
Returns
SuccessP6R::eOk 
FailureP6R::eNoMemoryInsuffficient memory to properly initialize the component
P6R::eInvalidArgpBlob is NULL
P6R::eBindRangeThe index paramter is greater than the last bind position.