$regexp = $this->db()->conf_type('regexp');
if (empty($regexp)) $regexp = 'REGEXP';
+ $regexp_not = $this->db()->conf_type('regexp_not');
+ if (empty($regexp_not)) $regexp_not = 'NOT ';
+
foreach ($this->fields() as $k => $field) {
// No empty values
$match = 'regexp';
$v = substr($v,1);
$v = $this->db()->quote($v);
- $equal = ' '.($not ? 'NOT ' : '').$regexp.' ';
+ $equal = ' '.($not ? $regexp_not : '').$regexp.' ';
} elseif ($field->string()) {
'cast_text' => function($name) { return "$name::text"; },
'extra_where' => 'denorm',
'regexp' => '~',
+'regexp_not' => '!',
'quote_field' => function($str) { $chr = "'"; $str = str_replace($chr,$chr.$chr,$str); return $chr . $str . $chr; },
'localFile' => array (getenv('HOME').'/.pgpass','^[^:]+:[^:]+:<D.NAME>:(?P<user>[^:]+):(?<password>[^:]+)'),