Commit Graph
49 Commits
Author SHA1 Message Date
Cédric Krier 39a74c7cc0 Typo in drop SQLite database
(transplanted from 40b287b932535d23c7bc837eaeff78a35e06f81d)
2010-12-02 00:26:33 +01:00
Cédric Krier 7673edf0df Fix typo in test query for PostgreSQL and SQLite thanks to Ralf Peschke
(transplanted from d1bddcf64ea7cd63d7a1611a5866f1b491734076)
2010-07-11 15:29:29 +02:00
Cédric Krier 1b662769bf Fix extract function in SQLite to work with date
(transplanted from faf73da610031ab5d7b49e89c4aca221846b10d9)
2010-07-08 20:01:11 +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 5c61502db0 Update init.sql according to models and guidlines 2010-01-16 14:28:40 +01:00
Cédric Krier e86ab8a32a Fix typo in logging message 2010-01-12 13:15:48 +01:00
Cédric Krier 1a8c6f2213 Add comment on table and field for postgresql backend 2010-01-11 12:32:50 +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 e2f80d378c Add timestamp field in backend
Improve validation of DateTime values
2009-11-10 14:00:13 +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 74eee1cd20 Refactor backend fields 2009-10-31 19:33:45 +01:00
Cédric Krier 4340747f28 Fix when using unicode in Sha field 2009-10-31 15:54:59 +01:00
Cédric Krier 0c899cdd81 Force SQLite params to be unicode 2009-10-20 22:58:51 +02:00
Cédric Krier d3b3cd41f2 Add test is column_name is in _columns when testing field type for issue1194
add_raw_column is used in _update_history_table and column_name can any more
exist or not yet instanciate in the Model
2009-09-28 11:58:52 +02:00
Cédric Krier b427d21224 Add new tool safe_eval 2009-09-28 11:21:11 +02:00
Bertrand Chenal 7834e3849a Handle sequence and history renaming when renaming table 2009-09-16 14:47:06 +02:00
Bertrand Chenal 36efc47a44 Allow to drop constraint, index and foreign key with custom table name 2009-09-10 14:19:10 +02:00
Bertrand Chenal fd3493ec06 Added column renaming on db backends 2009-09-10 14:09:59 +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 45914073bf Use faster join implementation:
- use generator when possible
- use tuple __mul__
2009-08-26 15:39:53 +02:00
Cédric Krier 54c79dddc5 Rename osv into model on workflow 2009-08-25 13:59:31 +02:00
Cédric Krier 768e98e26a Move BrowseRecord cache onto the cursor 2009-08-11 11:13:14 +02:00
Cédric Krier 0de3f616df Process remove action if field is in any module 2009-08-04 16:59:47 +02:00
Cédric Krier 92757863f3 Handle _sql_constraints when database doesn't 2009-07-30 17:02:42 +02:00
Cédric Krier 76cac522a1 Add missing DEFAULT for INTEGER of sqlite 2009-07-29 17:58:47 +02:00
Bertrand Chenal 9808e4906c merge 2009-07-27 15:14:53 +02:00
Bertrand Chenal 62781f7765 Reduce IN_MAX for sqlite:
Bigger IN_MAX (250 or more) generates too big sql queries when fetching
translations.
2009-07-27 15:14:03 +02:00
Cédric Krier f3356467d8 Remove memory database creation from client because it doesn't work with
multi-thread.
2009-07-27 14:49:51 +02:00
Cédric Krier e6a79109f3 Fix sql_format for Sha when value is None or False 2009-07-24 17:26:52 +02:00
Cédric Krier 16125fcab7 Add fix for rowcount with pysqlite < 2.5 2009-07-08 23:07:48 +02:00
Cédric Krier 6395092f64 Remove print statement 2009-07-08 22:46:09 +02:00
Bertrand Chenal 14c5f661ea Fix NOT NULL handling in base tables:
- Removed useless NOT NULL for sqlite in init.sql
- Added missing NOT NULL for postgresql in init.sql
- Take care of populating required fields when creating records in module tables
2009-07-08 14:10:07 +02:00
Cédric Krier 23c5eff184 Add sqlite backend 2009-07-07 19:35:44 +02:00