Thanks for your advices
but I think it is difficult for you to understand the motivation behind.
Please stop digging into this.
Thanks to moritz, however I think I got it.
He said:

I just think that "blind" searching in source code for SQL statements will not work reliably, it will have both many false positives and false negatvies.

BUT THAT'S EXACTLY THE POINT: WHY SHOULD IT WORK RELIABLY?
I dont need to have exact matches for each data row:
for testing its even better if I got negative as well as positive matches.
That's exactly boundary testing, and I get it for free!
So today I reprogrammed my RD engine to take only expressions of this kind:
- column = 'value' (or whatever other operator)
- column1 = column2
In my context I dont even want to find out the correspondig table
because I will insert the value in all the tables having this column.
I already modified my parser and detected successfully a lot of values in a huge query.
I'll try to publish the program in my scratchpad
(but first I've to ask because I'm working in a bank).


PERLMONKS IS GREAT!

Ciao!
Davide.

In reply to Re^6: SQL Parsing with Parse::RecDescent by DACONTI
in thread SQL Parsing with Parse::RecDescent by DACONTI

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.