Commit Graph
115 Commits
Author SHA1 Message Date
Cédric Krier b136467790 Don't rename table from first join and add missing arguments in _order_calc
(transplanted from 033fc58294be25600785fefa12760f6b5610b669)
2010-12-27 16:25:30 +01:00
Cédric Krier a731feaecc Fix missing cursor, user, context for issue1678
transplant b660e76a03ee1d68db38fb5c939a44c3511aa252
2010-09-08 18:42:43 +02:00
Cédric Krier 78def19a83 Fix search on many2many with negate operator
(transplanted from b660e76a03ee1d68db38fb5c939a44c3511aa252)
2010-09-03 23:37:31 +02:00
Cédric Krier 1d76571121 Fix search on many2many with a string as value
(transplanted from 0245fea1e44d02601b92af0ffe386cfc0c791ca9)
2010-09-03 14:27:49 +02:00
Cédric Krier ef3c7090ec Skip non ModelStorage from foreign key operations
(transplanted from 14ea0be5eb7f4376b4529dfa8005b3e2d17fa70c)
2010-08-23 23:56:56 +02:00
Cédric Krier c6aa9c912c Use explicit AS column name in queries that use dictfetch*
SQLite return wrong column name when using query as table
(transplanted from 5c38493067b4de52ece25abaf4353bc48f312299)
2010-07-15 19:00:21 +02:00
Cédric Krier 52e72d4343 Always check on delete restrict for issue1588
(transplanted from aab1c133077c144b83bbe6871fac3b2bae90eb8c)
2010-06-17 20:05:59 +02:00
Cédric Krier 30d90b99c3 Fix history clause error introduced by changeset 7f5860ab74cb
(transplanted from 012afdea6fe76da72b6ad683acea3f67d00fcf6d)
2010-06-12 20:16:25 +02:00
Cédric Krier af65cfaa8c Make _timestamp numeric instead of datetime to work with XML-RPC and JSON-RPC
(transplanted from 7f5860ab74cbed21e4ef264d2c799be4c07492dd)
2010-06-09 19:58:31 +02:00
Cédric Krier 4513a8f8b9 Documentation refactoring 2010-05-08 14:22:26 +02:00
Cédric Krier 8a13a179ce Fix string when adding raw column on history table for issue1515 2010-04-13 20:14:10 +02:00
Cédric Krier e50c1897ad Don't use offset in second query of search for issue1496
The order between the first query is not necessary the same then the second
one so using an offset can generate missing or duplicated ids in the result.
2010-04-10 13:56:47 +02:00
Cédric Krier e36c70ce3b searcher on Function fields take only one domain clause as argument 2010-03-23 11:22:31 +01:00
Brice V. 5e2a7de385 Fix typo on field types for issue1451 2010-03-18 10:33:59 +01:00
Cédric Krier 8ec67b1eba merge 2010-03-17 11:51:34 +01:00
Cédric Krier 2e2227d795 Improve search on translatable fields for issue1442 2010-03-17 11:50:52 +01:00
Cédric Krier aed753e21c Don't raise error message about required Integer or Float
Integers and Floats have 0 as default value at the database level
2010-03-16 13:35:13 +01:00
Cédric Krier dd6918994f New interface for Function/Property fields
Function field takes an other field in parameters
set/get function on Fields take a list of ids
2010-03-11 16:42:50 +01:00
Cédric Krier b5fb4d1ef3 Refactoring by validation with pylint 2010-02-18 18:50:35 +01:00
Cédric Krier 5d229f6fad Move OPERATORS into const to be able to reload modules 2010-01-22 11:44:31 +01:00
Cédric Krier 1946063a5d Don't put many2one in the search cache (too slow) and externalize some
function result outside the loop
2010-01-21 12:47:32 +01:00
Cédric Krier 8bfad5bfef Fix string for history logs add_raw_column 2010-01-12 09:08:16 +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 e2f80d378c Add timestamp field in backend
Improve validation of DateTime values
2009-11-10 14:00:13 +01:00
Cédric Krier d9cfdf8af8 Don't use date_trunc as it returns work type in SQLite 2009-11-03 15:23:07 +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 63407a4716 Add AS to select field in search to fix column names in dictfetchall with SQLite 2009-10-18 19:36:55 +02:00
Cédric Krier 18a360ee42 Add missing quote arround field_name when calling reduce_ids 2009-10-16 18:39:55 +02:00
Cédric Krier 49bdeec854 Call super for delete after write/delete of foreign keys because write and
delete can re-fill the cursor cache with deleted ids.
2009-10-12 16:56:29 +02:00
Cédric Krier 6221220e57 Use SQL query to search for foreign keys 2009-10-12 16:54:35 +02:00
Cédric Krier 3a7daa0609 Prevent double parenthesis for inselect subquery for issue1206
With double parenthesis SQLite uses only the first row
2009-10-09 15:56:40 +02:00
Cédric Krier 92fab4e81b Add datetime_field on xxx2Many to use a specific _datetime when reading the
related record
2009-10-05 15:41:10 +02:00
Cédric Krier 25ebb3606a Don't read history many2one if empty 2009-10-02 13:12:26 +02:00
Cédric Krier 68392d192d Add quote arround table name 2009-10-02 13:11:21 +02:00
Cédric Krier cadc9c40f0 Fix _sql_constraints validation when there is duplicated id in list for
issue1198
2009-09-30 14:42:00 +02:00
Cédric Krier d7a7cd4eee Don't fill cache in search for delete records for issue1176 2009-09-14 18:14:21 +02:00
Gour 486d46a405 fix typos for documentation (Model chapter) 2009-09-13 15:37: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 1259ee9668 Add new tool reduce_ids 2009-09-08 13:03:57 +02:00
Cédric Krier a2ccd946a4 Strip quote from cursor dict because some SQLite version return it. 2009-09-08 09:28:43 +02:00
Cédric Krier 48ccca3ba9 Backed out changeset 2d20900b6eb3 2009-09-08 09:27:43 +02:00
Cédric Krier ed04d78f43 Strip quote from cursor dict because some SQLite version return it. 2009-09-08 08:47:37 +02:00
Cédric Krier f4568e0cde Factorise code by adding get_cache function on Cursor. 2009-09-07 15:34:04 +02:00
Cédric Krier 3cf4f4a7e3 Add limit_clause function on cursor 2009-09-07 15:18:17 +02:00
Cédric Krier ffc8d2ba57 Fill the cursor cache at search and use it in search_read and in one2many get 2009-09-07 10:39:09 +02:00
Cédric Krier da9464b39a Clean all create/write fields in create and write of ModelSQL 2009-08-28 16:40:25 +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 8061d6c204 Faster implementation of sub_ids '%s' 2009-08-26 14:09:31 +02:00
Cédric Krier bfc92d0131 Use new iterobject on pool instead of object_name_list for speed improvement 2009-08-20 14:53:45 +02:00
Bertrand Chenal 3ed71f0674 Faster implementation of unique constraint validation 2009-08-12 10:34:49 +02:00