enso/distribution/lib/Standard/AWS/0.0.0-dev
Radosław Waśko 6f78570115
Fix a DROP table bug, add SQL debug logging (#8007)
- 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.
2023-10-10 13:16:06 +00:00
..
src Fix a DROP table bug, add SQL debug logging (#8007) 2023-10-10 13:16:06 +00:00
THIRD-PARTY First part of AWS S3 API, various small fixes. (#6973) 2023-06-15 16:20:13 +00:00
package.yaml Separating Redshift connector from Database library into a new AWS library (#6550) 2023-05-04 17:36:51 +00:00