lithium\data\source\database\adapter\PostgreSql::value()
Overrides
lithium\data\source\Database::value()
Converts a given value into the proper type based on a given schema definition.
Parameters
-
mixed
$value
The value to be converted. Arrays will be recursively converted.
-
array
$schema
Formatted array from
lithium\data\source\Database::schema()
Returns
mixedValue with converted type.
Source
public function value($value, array $schema = []) {
if (($result = parent::value($value, $schema)) !== null) {
return $result;
}
return $this->connection->quote((string) $value);
}