Public Member Functions | |
setBlob ($paramIndex, $blob) | |
Applies sqlite_udf_encode_binary() to ensure that binary contents will be handled correctly by sqlite. | |
Protected Member Functions | |
escape ($str) | |
Quotes string using native sqlite_escape_string() function. |
Definition at line 32 of file SQLitePreparedStatement.php.
SQLitePreparedStatement::escape | ( | $ | str | ) | [protected] |
Quotes string using native sqlite_escape_string() function.
Reimplemented from PreparedStatementCommon.
Definition at line 38 of file SQLitePreparedStatement.php.
SQLitePreparedStatement::setBlob | ( | $ | paramIndex, | |
$ | blob | |||
) |
Applies sqlite_udf_encode_binary() to ensure that binary contents will be handled correctly by sqlite.
Reimplemented from PreparedStatementCommon.
Definition at line 48 of file SQLitePreparedStatement.php.
References PreparedStatementCommon::setNull().
00049 { 00050 if ($blob === null) { 00051 $this->setNull($paramIndex); 00052 } else { 00053 // they took magic __toString() out of PHP5.0.0; this sucks 00054 if (is_object($blob)) { 00055 $blob = $blob->__toString(); 00056 } 00057 $this->boundInVars[$paramIndex] = "'" . sqlite_udf_encode_binary( $blob ) . "'"; 00058 } 00059 }