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
1887c2c564
Enforce usage of None instead of False
...
review685002
2013-03-05 10:33:18 +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
fd01a724f8
Add Dict fields
...
review501007
2013-01-26 15:18:41 +01:00
Cédric Krier
b553af8245
Don't delete cursor attribute in Cursor
...
The comment about this code is strange and doesn't reflect the behavior of the
connection pool.
issue2863
review612002
2012-12-23 22:50:54 +01:00
Cédric Krier
936dcca53a
Store default language in database
...
review592004
2012-11-23 17:59:04 +01:00
Pierre-Louis Bonicoli
6632b8e253
set_session would impact all next transactions too
...
issue2885
2012-11-11 22:25:34 +01:00
Nicolas Évrard
85ef891ffd
remove use of sha module
2012-11-08 16:57:58 +01:00
Cédric Krier
e5446dde37
Allow to use XML file for views
...
issue70
2012-09-26 19:38:20 +02:00
Cédric Krier
0fe1b93864
Active Record
2012-09-24 22:16:53 +02:00
Cédric Krier
14144c2438
Fix SQL formating of Reference when string has a length of 2
2012-07-27 10:55:08 +02:00
Cédric Krier
507358c4e8
Allow to use tuple for Reference
...
review437001
2012-07-25 21:01:29 +02:00
Cédric Krier
6858187fc8
Add dynamic size limit on the One2Many, Many2Many and Char
...
review396001
2012-06-20 18:12:40 +02:00
Cédric Krier
51ebd2fb3d
Fix typo in SQL init of SQLite
2012-06-08 23:09:19 +02:00
Cédric Krier
a09d9a54a1
Simplify module information with python configuration
...
review363001
2012-06-08 19:32:23 +02:00
Cédric Krier
7a39bbdd39
Fix MySQLdb to use time for TIME instead of timedelta
2012-05-17 12:59:58 +02:00
Cédric Krier
c6aa87cfca
Remove not null from res_id of ir.translation in init.sql
2012-05-07 18:39:43 +02:00
Cédric Krier
3c49120885
Remove default value in init.sql
...
review356001
2012-05-07 13:58:26 +02:00
Antoine Smolders
9adf7dc850
DatabaseIntegrityError and DatabaseOperationalError were redefined to None.
...
issue2422
review333002
2012-04-19 19:41:44 +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
Nicolas Évrard
584d516067
Integer, Numeric and Float allow None as value
...
NULL value is None and not False
issue2022
review237004
2012-03-23 17:52:36 +01:00
Cédric Krier
56eb3e283c
Remove unused CONTEXT_CACHE_SIZE constant
2012-03-12 15:34:53 +01:00
Cédric Krier
62b8321101
Don't use LRUCache as context cache to allow to clean it
...
References to the cursor cache are kept on BrowseRecord, we must be sure that
this cache will be cleaned.
review272001
2012-03-12 15:33:43 +01:00
Max Holtzberg
95182a38cb
Substitute CAST types and SPLIT_PART function to according to the MySQL specs
...
issue2345
review267002
2012-03-02 19:07:42 +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
Cédric Krier
8b33421403
Use XML-RPC struct for Decimal and Date
...
review191006
2011-12-22 22:17:08 +01:00
Nicolas Évrard
6ba18631e8
Use relative imports
2011-12-14 17:00:13 +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
ec4c38b84a
Switch from SERIALIZABLE to REPEATABLE_READ isolation level of PostgreSQL
...
Until before PostgreSQL 9.1 serializable was the same as repeatable read.
As we use explicit locking, repeatable read is enough.
review151006
2011-10-17 09:47:26 +02:00
Pierre-Louis Bonicoli
f35f3ec546
Put quotes around sequence names
...
Identifiers are quoted in trytond/backend/postgresql/table.py,
sequence names must be quoted too (see
http://www.postgresql.org/docs/8.4/static/functions-sequence.html )
issue2176
review141002
2011-10-12 15:44:00 +02:00
Nicolas Évrard
66717ae533
Version number should be tuple for postgresl has_returning
2011-10-05 18:29:30 +02:00
Cédric Krier
246d18d67f
Fix comparison of indexes
...
On MySQL the max length is 64
On PostgreSQL the max length is a build option, so we use the max length of the
known indexes
review116002
2011-09-28 18:09:30 +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
9e4d8baa6c
Cursor cache must depend of the user
...
review90002
2011-08-22 19:12:19 +02:00
Cédric Krier
1ab6964687
Add readonly on Transaction
...
review80005
2011-08-21 11:05:51 +02:00
Cédric Krier
0f3ba1f69f
Use RETURNING in INSERT if available
...
review21003
2011-08-21 10:20:23 +02:00
Nicolas Évrard
e09070dda0
Use function name in workflow instead of python code
2011-08-11 15:54:36 +02:00
Cédric Krier
d2665fad4f
Reset AUTO_INCREMENT of res_user
...
The tests assume that "admin" user will have the id "1" but MySQL increments
the sequence number even if an id is given so we have to reset it.
2011-08-03 12:11:32 +02:00
Cédric Krier
852f04dc51
Remove support of Python2.5 and fix py3 warnings
2011-07-12 00:16:15 +02:00
Cédric Krier
7a7e89bb10
Remove support of Many2Many field in record XML
...
issue1994
review35005
2011-07-03 18:01:47 +02:00
Cédric Krier
0c39c8b95d
merge
2011-06-14 12:33:43 +02:00
Cédric Krier
587567077f
Add LRUDict to use as cache
...
issue2033
review31005
2011-06-14 11:44:26 +02:00
Tshepang Lekhonkhobe
11b2f83c91
increase usage of 'with' statement
...
issue2048
review38012
2011-06-07 20:10:17 +02:00