Query regexp

Hi Steve,
I tried with your new SQL lib from the SVN
My query is
It may come from the line 1465 in the Parser.php in lib/SQL/.
But even without the parenthesis, the error still is displayed.
And the error is
I tried
but the result is the same.
Although an error is displayed, it seems that the query is still working.
I hope it helps.
Thank you
Jean
I tried with your new SQL lib from the SVN
My query is
- Code: Select all
select * from annuaire_enligne WHERE nom NOT REGEXP '([0-9]{4})' ORDER BY nom
It may come from the line 1465 in the Parser.php in lib/SQL/.
But even without the parenthesis, the error still is displayed.
- Code: Select all
while ($this->token == 'ident' or $this->token == '(') {
if ( $this->token == 'ident' ){
$tableType = 'ident';
$this->all_tables[] = $tree['table_names'][] = $tableName = $this->tokText;
} else {
//must be a subselect.
$this->getTok();
if ( $this->token != 'select' ){
return $this->raiseError('Expected "select" on line '.__LINE__.' of file '.__FILE__);
}
And the error is
Warning: Cannot use a scalar value as an array in /var/www/html/xataface-1.1.5r2/lib/SQL/Parser.php on line 1693
Warning: Cannot use a scalar value as an array in /var/www/html/xataface-1.1.5r2/Dataface/Table.php on line 1971
Warning: Invalid argument supplied for foreach() in /var/www/html/xataface-1.1.5r2/Dataface/Table.php on line 1971
I tried
- Code: Select all
__sql__="select * from annuaire_enligne WHERE CAST(nom as SIGNED INT)NOT BETWEEN 2000 AND 8000 ORDER BY nom"
but the result is the same.
Although an error is displayed, it seems that the query is still working.
I hope it helps.
Thank you
Jean