Chain-of-promises docs page confusion #1895
wigsaparelli
started this conversation in
General
Replies: 1 comment 2 replies
-
Good input! I corrected things and made the problem a bit more clear. Please see if it makes more sense now. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This section of the docs states at the top of the section:
If you put more than one SQL commands in the same string they will (until its fixed) run sync within in the async call to alasql - so a command like "INSERT ...; SELECT * ..." might not give the expected result as the select might run before the insert is done.
Reading this many times and looking at the code I don't think it's right. Yes a string containing multiple SQL commands will run sync within the async call but those sync executed commands will run in order. If indeed they are run sync (I believe they are looking at the code) then a comand like "INSERT ...; SELECT * ..." would always run the INSERT before the SELECT.
Am I missing something? It also states "(until its fixed)" but I don't think there is anything to fix here, it's as expected or perhaps something has been "fixed" and the docs not updated...
While it's being reviewed I spotted a few typos within the docs paragraph in question:
Thank you
Beta Was this translation helpful? Give feedback.
All reactions