Commit Graph
57 Commits
Author SHA1 Message Date
Cédric Krier 6b3f7fb250 Add sign function to SQLite backend
review3411002
2014-02-14 00:00:09 +01:00
Cédric Krier c46a026c40 Refactore Transaction to add close and autocommit
review2151002
2013-12-18 18:09:43 +01:00
Cédric Krier 5afcfb3b49 Activate foreign_keys in SQLite if available
review1064002
2013-09-18 13:40:51 +02:00
Cédric Krier fc6c6cfdda Migration to python-sql
* Use python-sql
* Add convert_domain method on Fields
* Add sql_format and sql_type methods on Fields
* Allow to return a full domain for Function.searcher
* Replace static backend by dynamic get method
* Replace order_field by order_<field name> method

review1001002
2013-09-06 22:32:37 +02:00
Cédric Krier 2e8ec5f5df Replace SPLIT_PART by SUBSTR and POSITION
SPLIT_PART is not a standard SQL function (it is not supported by MySQL).
SUBSTR is used even if it is not standard SQL because SUBSTRING is not
supported by SQLite. This will change once we will migrate to python-sql.

review784002
2013-04-14 23:17:55 +02:00
Cédric Krier 2ff45c8869 Let raise exception in sqlite extract 2013-03-13 18:43:35 +01:00
Cédric Krier d7a9e86ed1 Fix local variable 'microseconds' referenced before assignment
issue3049
2013-03-13 18:42:30 +01:00
Cédric Krier 5e01f5c068 Fix flake8 2013-02-27 22:50:31 +01:00
Pierre-Louis Bonicoli 8b1cae85f5 use IOError & display filename of db when SQLite db is not found
issue3020
review680002
2013-02-26 13:30:49 +01:00
Cédric Krier a09d9a54a1 Simplify module information with python configuration
review363001
2012-06-08 19:32:23 +02:00
Cédric Krier ee3be37a36 Fix pep8 and pyflakes 2012-04-01 23:08:15 +02:00
Cédric Krier be0e5c54a9 Simplify workflow engine
- Remove workflow module
- Add ir.model.button for access rights

review256001
2012-03-25 00:15:17 +01:00
Cédric Krier e348c49312 Add support of fields.Time
issue2313
review231006
2012-02-07 16:11:22 +01:00
Cédric Krier 7d457f46c4 Store session in database
review210012
2012-01-11 20:30:27 +01:00
Max Holtzberg acffdd8246 Correct handling of NULL values in user defined split_part function on SQLite
issue2370
review214001
2011-12-29 11:57:44 +01:00
Nicolas Évrard 0a471486e0 correct pyflake errors
review164003
2011-11-02 15:49:38 +01:00
Cédric Krier e4f018c2e7 Use a thread-local data to store SQLite memory database
issue2195
review153005
2011-10-18 09:50:00 +02:00
Cédric Krier 0689b87d91 Don't convert SQLite str parameters into unicode
Binary fields are no more encoded into base64 and others should be unicode
2011-09-20 12:52:02 +02:00
Cédric Krier 1ab6964687 Add readonly on Transaction
review80005
2011-08-21 11:05:51 +02:00
Cédric Krier 852f04dc51 Remove support of Python2.5 and fix py3 warnings 2011-07-12 00:16:15 +02:00
Tshepang Lekhonkhobe 11b2f83c91 increase usage of 'with' statement
issue2048
review38012
2011-06-07 20:10:17 +02:00
Cédric Krier 8687b8914d Handle closing of file objects 2011-01-08 20:29:00 +01:00
Cédric Krier 91ce81ec84 Typo in drop SQLite database 2010-12-02 00:26:33 +01:00
Cédric Krier c4b9b9e6c4 Fix typo in test query for PostgreSQL and SQLite thanks to Ralf Peschke 2010-07-11 15:29:29 +02:00
Cédric Krier aabaa8851a Fix extract function in SQLite to work with date 2010-07-08 20:01:11 +02:00
Cédric Krier 483afed26a Catch only Exception according to PEP 352 2010-07-08 19:53:39 +02:00
Cédric Krier 8951e54c86 Add decimal digits validation on fields and fix Float and Numeric for lost of precision 2010-03-11 15:27:40 +01:00
Cédric Krier 00677cc383 merge 2010-03-04 14:02:53 +01:00
Cédric Krier 20741b613d Improve unittests to run trytond from tests
Use sqlite as default backend
Add skiptest attribute to data tag
Add option to test_tryton to run tests from all modules
2010-03-04 14:02:27 +01:00
Cédric Krier 886533e1c5 Add replace python function for old sqlite for issue1432 2010-03-03 18:28:58 +01:00
Cédric Krier cb63509356 Add MySQL backend 2010-02-25 16:43:04 +01:00
Cédric Krier 46cbcdc62e Use open instead of file to follow recommendation of Python doc 2010-02-22 23:16:14 +01:00
Cédric Krier b5fb4d1ef3 Refactoring by validation with pylint 2010-02-18 18:50:35 +01:00
Cédric Krier 6997fd60b2 Fix typo in sqlite database functions 2010-02-10 18:43:39 +01:00
Cédric Krier bbe480fa21 Use list comprehensions for dictfetch* function of Cursor 2010-01-20 15:28:09 +01:00
Cédric Krier cae0a76a3d Remove egenix-mx-base and replace it by python-dateutil 2009-12-17 11:39:54 +01:00
Cédric Krier 9f036b99b4 Fix extract to work with microseconds 2009-11-03 15:25:15 +01:00
Cédric Krier 7280d36966 Use custom datetime adapter that remove tzinfo for SQLite 2009-11-03 15:24:11 +01:00
Cédric Krier ddbd7b2be1 Don't use now() in SQL statement as it doesn't work on SQLite 2009-11-03 15:22:17 +01:00
Cédric Krier 56a09f5fb2 Handle extract with SQLite 2009-11-02 20:29:30 +01:00
Cédric Krier 0c899cdd81 Force SQLite params to be unicode 2009-10-20 22:58:51 +02:00
Cédric Krier b427d21224 Add new tool safe_eval 2009-09-28 11:21:11 +02:00
Cédric Krier ae35028b5b Better fix for quote in dictionary of some SQLite version 2009-09-08 13:16:49 +02:00
Cédric Krier 3cf4f4a7e3 Add limit_clause function on cursor 2009-09-07 15:18:17 +02:00
Cédric Krier 1f8057bc38 Compile only once QUOTE_SEPARATION 2009-09-07 10:08:17 +02:00
Cédric Krier 60f53b858c Add split_part function to SQLite 2009-09-03 01:13:50 +02:00
Cédric Krier a95e9be981 Open sqlite file in binary mode for dump 2009-09-02 21:15:37 +02:00
Cédric Krier 97a13b01b0 Prevent exception when testing SQLite database (corrupted file) 2009-09-02 21:01:32 +02:00
Cédric Krier 768e98e26a Move BrowseRecord cache onto the cursor 2009-08-11 11:13:14 +02:00
Cédric Krier 92757863f3 Handle _sql_constraints when database doesn't 2009-07-30 17:02:42 +02:00