Skip Menu |

This queue is for tickets about the SQL-Statement CPAN distribution.

Report information
The Basics
Id: 8184
Status: resolved
Priority: 0/
Queue: SQL-Statement

People
Owner: JZUCKER [...] cpan.org
Requestors: spam [...] punch.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: problem with multiple nested parens
Using ths sql statement: SELECT a FROM ztable A , ztable M WHERE A.col1 = ? AND ( M.col = A.col OR ( M.col is NULL AND M.col = A.col ) ) I get this error: SQL ERROR: Bad predicate: '^1^'! The fix for this is in: sub non_parens_search this line: $str =~ s/^\s*\^0\^\s*$/$predicates->[0]/; should be $str =~ s/^\s*\^(\d)\^\s*$/$predicates->[$1]/;
Thanks for the report. Parens parsing is vatly improved in the upcoming version of SQL-Statement 1.10. It handles your example fine.