How to deal with "Not supported query type!"? #206
christopherpickering
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running the sql-metadata parser on a bunch of sqlserver queries. Its pretty common to start a sql server query with the database name -
In the parser, this throws a
not supportederror because the parser is only looked at the first query fromsqlparse.Or, if I have a messy statement -
The tool is currently only setup for us to pass in
select a from b;, but it would be nice it if could handle messier stuff.What do you think about iterating through the parsed parts instead of grabbing part one?
I'm using a simple wrapper which removes leading whitespace and punctuation -
I guess this leads to another question! What if we are querying
cool_dband joining toanother_cool_db- how can we determine which tables/column belong to which db?Beta Was this translation helpful? Give feedback.
All reactions