Utility Class to parse sql clauses for properly escaping identifiers
package | Query |
---|---|
subpackage | Query |
__construct(string $sql = ''
)
string
parse_join(string $sql)
string
filter_array(array $array) : array
array
array
$matches : array
array('functions' => array(), 'identifiers' => array(), 'operators' => array(), 'combined' => array())
$match_patterns : array
array('function' => '([a-zA-Z0-9_]+\((.*?)\))', 'identifier' => '([a-zA-Z0-9_-]+\.?)+', 'operator' => '=|AND|&&?|~|\|\|?|\^|/|>=?|<=?|-|%|OR|\+|NOT|\!=?|<>|XOR')