-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Remove AS from table aliases. #4835
Conversation
Having AS causes issues with Oracle. While this is not a core driver, the AS keyword is not required by any supported driver. Refs #4830
Oracle bad :( Could this be made dependent on the driver used? I find queries without the |
Well drivers can implement their own QueryCompiler. Theoretically, not including AS will make the ORM a teeny tiny bit faster as there are fewer bytes to allocate in memory, and send to the db server. |
We're entering pico-optimisation territory here! Generally, I'm ok-ish with this change, because it's simple. However, because Oracle is not a "core" driver (and Oracle is just stubborn to not comply with the SQL standards), I would prefer having this exception in the Oracle driver, if possible. |
@markstory Having the @thaJeztah SQL standards, don't make me laugh 🍭 |
@ravage84 agreed, most databases don't fully comply with the "standards" (and then again, which version) and many extend on those "standards", but not supporting something very basic as Having said that, my main issue here is the readability of the queries, so on that point, I think we're in agreement 😄 |
Having a supported Oracle driver is better. So I don't mind this. |
Sqlserver has couple of failing tests |
I like it for readability too, but nevermind. |
Remove AS from table aliases.
Merging, bit we can always revisit this in the future if necessary. |
Having AS causes issues with Oracle. While this is not a core driver, the AS keyword is not required by any supported driver.
Refs #4830