Database: ezcQueryExpressionPgsql
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcQueryExpressionPgsql
|
The ezcQueryExpressionPgsql class is used to create SQL expression for PostgreSQL. [
source]
This class reimplements the methods that have a different syntax in postgreSQL.
Parents
ezcQueryExpression
|
--ezcQueryExpressionPgsql
Method Summary
|
public ezcQueryExpressionPgsql |
__construct(
$version )
Constructs an empty ezcQueryExpression with the versoin $version. |
|
public string |
concat(
0 )
Returns a series of strings concatinated |
|
public string |
md5(
$column )
Returns the md5 sum of a field. |
|
public string |
subString(
$value, $from, [$len = null] )
Returns part of a string. |
Inherited Methods
From
ezcQueryExpression :
Methods
__construct
ezcQueryExpressionPgsql __construct(
int
$version )
Constructs an empty ezcQueryExpression with the versoin $version.
Parameters
| Name |
Type |
Description |
$version |
int |
|
Redefinition of
concat
string concat(
string|array(string)
0 )
Returns a series of strings concatinated
concat() accepts an arbitrary number of parameters. Each parameter must contain an expression or an array with expressions.
Parameters
| Name |
Type |
Description |
0 |
string|array(string) |
strings that will be concatinated. |
Throws
| Class | Description |
ezcQueryVariableParameterException |
if no parameters are provided. |
Redefinition of
md5
string md5(
$column )
Returns the md5 sum of a field.
Note: Not SQL92, but common functionality
md5() works with the default PostgreSQL 8 versions.
If you are using PostgreSQL 7.x or older you need to make sure that the digest procedure. If you use RPMS (Redhat and Mandrake) install the postgresql-contrib package. You must then install the procedure by running this shell command:
1. psql [dbname] < /usr/share/pgsql/contrib/pgcrypto.sql
You should make sure you run this as the postgres user.
Parameters
| Name |
Type |
Description |
$column |
|
|
Redefinition of
subString
string subString(
string
$value, int
$from, [int
$len = null] )
Returns part of a string.
Note: Not SQL92, but common functionality.
Parameters
| Name |
Type |
Description |
$value |
string |
the target $value the string or the string column. |
$from |
int |
extract from this characeter. |
$len |
int |
extract this amount of characters. |
Redefinition of
Last updated: Thu, 31 Jan 2008