-
Notifications
You must be signed in to change notification settings - Fork 606
Qualified wildcard to_string() is invalid #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks! While this fix should probably be applied anyway, I wonder how you found this. Do you know which dialects allow qualified wildcards "inside" expressions, like (The widely supported |
I am not too sure exactly which databases support it, but it is a valid syntax. Stack overflow link recommending its use. I would have to manually test it in different databases to see which support it. |
Thanks! no need to test, I was wondering if you knew one off-hand. Turns out Postgres does support it, though I didn't find it mentioned in their docs. |
The PR was merged. Thanks again! |
Line in question: https://github.com/andygrove/sqlparser-rs/blob/master/src/sqlast/mod.rs#L114
Calling to_string() on a qualified wildcard returns
Qualification*
instead ofQualification.*
. Should be as simple as changing the line to:q.join(".") + ".*"
The text was updated successfully, but these errors were encountered: