Subject: | Can't do parse only - buildCondition undefined method |
I recently upgraded some software using SQL::Statement v 1.17 to 1.27
After fixing the obvious documented changes around the column_names struct I have come
across a problem with a null buildCondition.
I upgraded further to 1.33 but the problem persists
Specifically,my code which only uses SQL::Statement to parse and rewrite SQL for an existing
external database, returns the error:
Can't call method "buildCondition" on an undefined value at.... SQL::Statement.pm line 121
When a where clause is used in the SQL.
Its not possible that all DB structures will be known to the perl subsystem and my program
likes to know nothing about column specifics.
Works:
select sum(duration) from cdr;
Broken:
select sum(duration) from cdr where duration >0;
Platform:
perl 5.8.8
Centos5.7
Intel I5 8 GRAM