PgSQLPreparedStatement Class Reference

Inherits PreparedStatementCommon.

List of all members.

Public Member Functions


Member Function Documentation

PgSQLPreparedStatement::escape ( $  str)

 

Quotes string using native pgsql function (pg_escape_string). protected

Parameters:
string $str

Returns string

PgSQLPreparedStatement::arrayToStr ( $  arr)

 

Recursive function to turn multi-dim array into str representation.

Parameters:
array $arr private

Returns string Array in pgsql-friendly string notation: {val1, val2} or {{sub1,sub2}, {sub3, sub4}}

PgSQLPreparedStatement::setArray ( $  paramIndex,  $  value )

 

Sets an array. Unless a driver-specific method is used, this means simply serializing the passed parameter and storing it as a string.

Parameters:
int $paramIndex
array $value

See also PreparedStatement::setArray()

Returns mixed boolean TRUE on success, SQLException if index out of range.

Reimplemented from PreparedStatementCommon.

PgSQLPreparedStatement::setBoolean ( $  paramIndex,  $  value )

 

For setting value of Postgres BOOLEAN column.

Parameters:
int $paramIndex
boolean $value

Returns mixed boolean TRUE on success, SQLException if index out of range.

Reimplemented from PreparedStatementCommon.

PgSQLPreparedStatement::setBlob ( $  paramIndex,  $  blob )

 

Applies sqlite_udf_encode_binary() to ensure that binary contents will be handled correctly by sqlite.

Parameters:
int $paramIndex
mixed $blob Blob object or string containing data.

Returns mixed boolean TRUE on success, SQLException if index out of range.

Reimplemented from PreparedStatementCommon.


This file is part of the Creole[php4] library.


Copyright © 2004 Hans Lellelid  
Creole[php4] CVS