Function Database_Static_postgresql->encode_binary_compare
Definitions
sources/database/postgresql.php
- Encode a WHERE query part for performing a comparison on a BINARY type field.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$column | ID_TEXT | No | No | required parameter | N/A | N/A | The column name being compared |
$operator | ID_TEXT | No | No | required parameter | < > = <> <= >= | N/A | The operation to be performed |
$value | string | No | No | required parameter | N/A | N/A | The value to compare, in binary string format |
Returns
- The encoded WHERE part
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Encode a WHERE query part for performing a comparison on a BINARY type field.
*
* @param ID_TEXT $column The column name being compared
* @param ID_TEXT $operator The operation to be performed
* @set < > = <> <= >=
* @param string $value The value to compare, in binary string format
* @return string The encoded WHERE part
*/
public function encode_binary_compare(string $column, string $operator, string $value) : string
* Encode a WHERE query part for performing a comparison on a BINARY type field.
*
* @param ID_TEXT $column The column name being compared
* @param ID_TEXT $operator The operation to be performed
* @set < > = <> <= >=
* @param string $value The value to compare, in binary string format
* @return string The encoded WHERE part
*/
public function encode_binary_compare(string $column, string $operator, string $value) : string