PHP Classes

small bugs

Recommend this page to a friend!

      SQL Parse Convert to Tree Array  >  All threads  >  small bugs  >  (Un) Subscribe thread alerts  
Subject:small bugs
Summary:the tree generator eats function names with underscores
Messages:2
Author:Michiel Betel
Date:2010-05-17 18:17:17
Update:2010-05-18 04:17:09
 

  1. small bugs   Reply   Report abuse  
Picture of Michiel Betel Michiel Betel - 2010-05-17 18:17:17
Hi,

I love your parser and am planning to use it in my reporting package.
However while testing I notices a few small things:

When doing:

select date_format(date, '%d-%m-%Y') from table xxx

the function is shown as 'format' and not as 'date_format'

Also I noticed you do not yet support

select amount/100 from table amounts

The division is not shown in the tree

Keep up the great work!!

  2. Re: small bugs   Reply   Report abuse  
Picture of Michiel Betel Michiel Betel - 2010-05-18 04:17:09 - In reply to message 1 from Michiel Betel
Fix for function names with underscores:

In the preg_match in function _makeChildsTree change the pattern [A-Z] to [A-Z_]

Michiel