How to use alias in LEFT JOIN with alasql? #1932
-
This simple query works fine in MySQL, but fails in AlaSQL - why?
The error code from AlaSQL is (shortened for readability):
Tried it with AlaSQL versions 4.3.1 and 3.0.0. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Appearantly, "temp" is a reserved keyword in AlaSQL (though it's not mentioned anywhere). When I switch "temp" with "tmp", everything works as expected. Go figure! |
Beta Was this translation helpful? Give feedback.
-
Hmmm. You are right. I dont know why TEMP is reserved. I dont think its normal SQL syntax. I will avoid breaking compatibility and instead add it to the documentation. Thank you for letting the world know. |
Beta Was this translation helpful? Give feedback.
Appearantly, "temp" is a reserved keyword in AlaSQL (though it's not mentioned anywhere). When I switch "temp" with "tmp", everything works as expected. Go figure!