enso/test/Table_Tests
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
..
data Report Loss_Of_Integer_Precision when an integer is not exactly representable as a float during conversion (#7509) 2023-08-08 12:30:44 +00:00
scripts/postgresssl Docker file for testing Postgres SSL and updated Postgres Spec (#3607) 2022-07-26 13:28:43 +00:00
src Fix a DROP table bug, add SQL debug logging (#8007) 2023-10-10 13:16:06 +00:00
package.yaml Change layout of local library search path in order to be able to move Round_Spec.enso back to Tests (#7634) 2023-09-01 20:20:04 +00:00