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
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
6aec5c64ab
Don't put "OFFSET 0" for PostgreSQL backend
...
"OFFSET 0" adds a limit operation in query plan
2010-02-03 15:25:57 +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
b427d21224
Add new tool safe_eval
2009-09-28 11:21:11 +02:00
Cédric Krier
3cf4f4a7e3
Add limit_clause function on cursor
2009-09-07 15:18:17 +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
03cb043c78
Add a cache to Database.list for PostgreSQL
2009-08-25 16:58:09 +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
92757863f3
Handle _sql_constraints when database doesn't
2009-07-30 17:02:42 +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
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
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
Cédric Krier
1a10e5ffaa
Fix warnings for python 2.6 for issue915
2009-04-08 17:55:24 +02: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
e3bd17d9bb
Fix logger when self.cursor.query is None
2009-03-11 01:05:02 +01:00
Cédric Krier
51a33d26f6
Add logging info when connect to database
2009-02-13 13:36:57 +01:00
Cédric Krier
b75d10cd20
Use a new pool for object
...
Move workflow method in ModelWorkflow
Move workflow service in workflow module
Remove Service and LocalService
Remove web_service and use a dispatcher in protocols
New netrpc/xmlrpc syntax to be easier to introspect
2009-02-11 14:52:22 +01:00
Cédric Krier
bb5d16ca3e
Remove psycopg2 from server.py
2009-02-06 10:26:38 +01:00
Cédric Krier
e6ee0854b2
Move dump and restore into specific backend
2009-02-05 16:44:38 +01:00
Cédric Krier
be55d5f76a
Use cursor query to display wrong SQL
2009-02-04 15:34:03 +01:00
Cédric Krier
f63aaa316d
Remove sql_db and add database in backend
2009-02-04 15:29:28 +01:00