sqlparse icon indicating copy to clipboard operation
sqlparse copied to clipboard

sqlparser: Problem extracting token parameters

Open aghassen opened this issue 2 years ago • 0 comments

Hi team, when using sqlparser to extract token names and their parameters from queries as indicated in the following image:

1

and given the following query:

2

when we try to print the length of parameters as follow:

3

the expected parameters length in this query is 3. But both results are wrong as shown in the next image:

4

This is just an exemple of where you might encounter this problem. We did encounter it in multiple other occasions.

aghassen avatar Feb 16 '23 10:02 aghassen