Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
b431c4c5 by Cédric Krier at 2025-01-05T16:02:39+01:00
Allow running field binary tests with a non memory SQLite database

By setting the filestore path as a global variable, we can modify it for the
test without changing the database path where the SQLite databases are stored.

Closes #13792
- - - - -
d23354a1 by Cédric Krier at 2025-01-05T16:07:54+01:00
Ignore operational error when optimize SQLite database on connection

The 'PRAGMA optimize' command can not run on a locked database which may happen
when a nested transaction is started.

Closes #13793
- - - - -
f08c1e32 by Cédric Krier at 2025-01-05T16:12:14+01:00
Remove shared memory and write-ahead log files when dropping SQLite database

Since 6837a618f53d SQLite may create such temporary files.

Closes #13794
- - - - -
cf99ddf9 by Cédric Krier at 2025-01-05T16:15:17+01:00
Create target SQLite database before copying when restoring SQLite database

Closes #13795
- - - - -
0a2239fb by Cédric Krier at 2025-01-16T09:47:25+01:00
Close the SQLite connection to memory database when the database has been 
dropped

Instead of relying on the garbage collector to close the connection by deleting
the object, this ensures that the memory database is actually dropped before a
new connection is instantiated and keep the database.

Closes #13796
- - - - -


4 changed files:

- trytond/trytond/backend/sqlite/database.py
- trytond/trytond/filestore.py
- trytond/trytond/tests/test_field_binary.py
- trytond/trytond/tests/test_tryton.py


View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/0ba4dec10a980cd41989f428ef58b21f90e81d91...0a2239fb548b5b20a9ae4d4a8c8c6c34cfed5683

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/0ba4dec10a980cd41989f428ef58b21f90e81d91...0a2239fb548b5b20a9ae4d4a8c8c6c34cfed5683
You're receiving this email because of your account on foss.heptapod.net.

Reply via email to