This project is archived and is in readonly mode.
SQLiteAdapter fails with a dark message when creating columns when inside a transaction
-
Gunnar Wolf
UGH... This got formatted as hell. I'm uploading both versions of the patch.
Here goes the first version: Try to make it work, just leaving out the vacuum
-
Gunnar Wolf
Second patch
-
Pratik
- State changed from new to incomplete
- Assigned user set to Pratik
Can you please add a test case verifying expected exception is raised for sqlite adapter ?
Thanks.
-
Gunnar Wolf
Here it is - I'm doing the test for the second case I mentioned (raising a StatementInvalid when adding a column inside a transaction).
Stylistically it might be quite un-railish - But it does work as expected.
-
Repository
- State changed from incomplete to resolved
(from [089251581137b041828a7e6dcbf75ecbef55b4a3]) Ensure add_column gives valid error for sqlite. [Gunnar Wolf, Pratik] [#197 state:resolved]
SQLite#add_column executes "VACUUM", which fails if inside a live transaction. This patch
ensures a valid exception is raised if add_column is executed within a live transaction for
sqlite adapter.
