mirror of
https://github.com/enso-org/enso.git
synced 2024-12-28 11:25:30 +03:00
6f78570115
- Fixes a bug where creating a temporary table could accidentally issue a `DROP` statement of the table name that the user provided, risking destruction of user data. - Fortunately, the bad scenario was almost impossible, because the `DROP` statement was only issued _if_ we previously checked that the mentioned table _does not exist_ - dropping a nonexistent table does not do any harm. - It could have been dangerous in a very unlikely scenario that a table was created just between the _existence check_ and the _drop_. - After the fix the existence check and any modifications are done within a transaction to avoid interference from concurrent modifications, and the DROP is correctly applied to a temporary Enso table instead of the original one. - Replaced a temporary log with proper simple logging of SQL statements into a file, if an Environment variable is set. - Used that feature to test that no unexpected statements occur. |
||
---|---|---|
.. | ||
src | ||
THIRD-PARTY | ||
package.yaml |