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
2372e64abd
Fix call to exec_pg_command_pipe to wait the end of the command
2009-09-02 17:38:06 +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
03cb043c78
Add a cache to Database.list for PostgreSQL
2009-08-25 16:58:09 +02:00
Cédric Krier
54c79dddc5
Rename osv into model on workflow
2009-08-25 13:59:31 +02:00
Cédric Krier
ee151be4cd
Close non-tested database for issue1135
2009-08-21 22:15:13 +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
Cédric Krier
f820d707f5
Remove _sequence on ModelSQL
...
Add nextid, setnextid, currid, lastid to have a generic way to handle sequence
Add has_lock function to be more database independant
2009-07-07 19:32:31 +02:00
Cédric Krier
887520079b
Remove unused code
2009-07-07 19:03:04 +02:00
Cédric Krier
a43d194467
Fix typo
2009-07-07 19:02:49 +02:00
Cédric Krier
09bfd64387
Remove unuseful size constraints
2009-07-05 17:17:12 +02:00
Johannes Bornhold
9e47032635
Added support for environment variable "PGPASSWORD" when calling pg_dump for issue1058
2009-05-23 08:37:28 +02:00
Cédric Krier
83814d6193
Really close some cursors to not keep unused cursor in memory
2009-05-20 01:05:52 +02:00
Cédric Krier
763b3e12aa
Fix encoding in database list
2009-05-12 13:55:40 +02:00
Cédric Krier
227af2a197
rollback closing cursor and commit init cursor to have a fresh cursor from the Pool
2009-05-06 12:53:17 +02:00
Cédric Krier
72da5949c2
Use --no-owner for dump/restore
2009-05-03 14:35:28 +02:00
Cédric Krier
edf78613bf
Add close database for dump/restore since we keep cursors
2009-05-03 14:34:47 +02:00
Cédric Krier
2343b6dec7
Add db_minconn in configuration
2009-05-02 15:21:36 +02:00
Cédric Krier
5207857a92
Keep at least one connection open
2009-05-02 15:16:19 +02:00
Bertrand Chenal
2d40d7350b
Change output_format (One2Many) to extension (Selection) on ir.action.report.
...
This will ease future addition of new report extension.
2009-04-16 23:22:42 +02:00
Cédric Krier
1a10e5ffaa
Fix warnings for python 2.6 for issue915
2009-04-08 17:55:24 +02:00
Cédric Krier
9db2aa4958
Set default value for id and __id column for issue886
2009-03-22 23:24:12 +01:00
Cédric Krier
1bd5fe4439
Add default value for id and __id for issue880
...
Create sequence for history table
2009-03-20 01:42:34 +01:00
Cédric Krier
6bf9598b71
Add primary key __id on history table
2009-03-18 18:57:47 +01:00
Cédric Krier
76f9cdf37f
Add missing history in super call
2009-03-18 18:08:41 +01:00
Cédric Krier
3cc8b4727d
Fix creation of table to use the right sequence name
2009-03-17 22:38:41 +01:00
Cédric Krier
f0505b1b39
Remove old table from the test
2009-03-17 19:08:27 +01:00
Cédric Krier
ef5b171bb7
Use default name for res.user-res.group
2009-03-17 18:55:16 +01:00
Cédric Krier
3e51c5c110
Add functions for table_rename, sequence_exist and sequence_rename
2009-03-17 18:53:00 +01:00
Cédric Krier
044ecd61f8
Fix the history table creation
...
- create missing field added by others modules for issue857
- don't update history record with default value
2009-03-12 15:52:44 +01:00
Cédric Krier
e3bd17d9bb
Fix logger when self.cursor.query is None
2009-03-11 01:05:02 +01:00
Cédric Krier
7163b49021
Improve index_action to work with a list of column name
2009-03-06 00:36:22 +01:00
Cédric Krier
40f8c7553d
Modify Many2Many to use a model to store relations instead of a named table.
2009-03-05 14:50:44 +01:00
Cédric Krier
9aca50d788
Add id column if missing on table
2009-03-05 14:46:53 +01:00
Cédric Krier
f2a4986d29
Remove symbol_c as we will use only backend with Python Database API Specification v2.0
...
Rename symbol_f into sql_format
2009-03-02 14:49:09 +01:00
Cédric Krier
3706e76e99
Add _history_table on ModelSQL to historize change on records
...
Use _datetime in context to read record value at specific datetime
Add datetime_field on Many2One to use a specific _datetime when reading the
related record
2009-02-23 11:27:36 +01:00