Cédric Krier
b9e9964157
Fix Greatest and Least for SQLite
...
issue4597
review12051002
2015-03-24 22:04:12 +01:00
Cédric Krier
4be42a5b50
Fix encoding/decoding in adapter/converter of sqlite for Python3
...
bytes must be used when storing raw values of adapter in blob
bytes is received by the converter and so it must be decoded into unicode
issue3211
2015-03-19 21:44:54 +01:00
Cédric Krier
31e8634bf4
Fix bytes and bytearray usage
...
- sqlite can not convert bytearray, must use buffer
- binary value could be stored as unicode
- don't dump bytes as base64 in xmlrpclib if bytes is str
2015-03-16 20:13:03 +01:00
Cédric Krier
5cfde31ed2
Use bytes and bytearray for Binary
...
issue4637
review11091002
2015-03-16 19:28:34 +01:00
Cédric Krier
20484bb013
Fix formatting in logger calls
2015-03-05 11:32:18 +01:00
Sergi Almacellas Abellana
5436fe6cee
Add support for Greatest and Least on SQLite
...
issue4597
review13011002
2015-03-04 18:15:06 +01:00
Cédric Krier
0ac0990c77
Improve logging
...
issue4458
review11781002
2015-03-02 23:39:15 +01:00
Cédric Krier
5a34e18b75
Fix SQLite convert interval for min/max value
...
The total_seconds of timedelta min and max can not be used to instanciate a
timedelta. So we need to test for such case and return timedelta min or max.
2015-02-09 23:36:32 +01:00
Cédric Krier
0991a552de
Add TimeDelta field
...
And remove float_time widget.
issue4026
review5911002
2015-02-09 22:58:56 +01:00
Cédric Krier
288dc51876
SQL SIGN must return zero for zero
...
The SQLite implementation of SIGN is not correct for zero, it must return zero
instead of 1.
issue4518
review10831002
2015-02-04 23:19:45 +01:00
Cédric Krier
67d5291bfd
Use Field.sql_column for SELECT queries in ModelSQL
...
By using sql_column, it increases the possibilities of customisation of fields.
issue4369
review14711002
2014-12-20 19:24:42 +01:00
Cédric Krier
c144f8c349
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier
e0b995abbe
Refactore configuration to allow easy extention
...
issue3627
review7401002
2014-09-03 23:32:01 +02:00
Cédric Krier
49ce719d0e
Add SQLite support for char_length
...
review10331002
2014-05-27 22:32:26 +02:00
Cédric Krier
6b3f7fb250
Add sign function to SQLite backend
...
review3411002
2014-02-14 00:00:09 +01:00
Cédric Krier
c46a026c40
Refactore Transaction to add close and autocommit
...
review2151002
2013-12-18 18:09:43 +01:00
Cédric Krier
5afcfb3b49
Activate foreign_keys in SQLite if available
...
review1064002
2013-09-18 13:40:51 +02:00
Cédric Krier
fc6c6cfdda
Migration to python-sql
...
* Use python-sql
* Add convert_domain method on Fields
* Add sql_format and sql_type methods on Fields
* Allow to return a full domain for Function.searcher
* Replace static backend by dynamic get method
* Replace order_field by order_<field name> method
review1001002
2013-09-06 22:32:37 +02:00
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
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
936dcca53a
Store default language in database
...
review592004
2012-11-23 17:59:04 +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
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
3c49120885
Remove default value in init.sql
...
review356001
2012-05-07 13:58:26 +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
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
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
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
1ab6964687
Add readonly on Transaction
...
review80005
2011-08-21 11:05:51 +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
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
Tshepang Lekhonkhobe
11b2f83c91
increase usage of 'with' statement
...
issue2048
review38012
2011-06-07 20:10:17 +02:00
Cédric Krier
51678f43e9
Fix column_rename of SQLite backend for issue1832
2011-04-21 18:58:18 +02:00
Cédric Krier
54e6a8c2fe
Use md5 hash for indexing translation for issue1898
2011-04-09 12:36:01 +02:00
Cédric Krier
8687b8914d
Handle closing of file objects
2011-01-08 20:29:00 +01:00
Cédric Krier
91ce81ec84
Typo in drop SQLite database
2010-12-02 00:26:33 +01:00
Cédric Krier
b5c86fbbcd
Add AUTOINCREMENT to sqlite primary key for issue1748
2010-11-07 16:50:59 +01:00
Cédric Krier
df1fd283ac
New transaction management
...
Remove cursor, user and context from methods and use Transaction instead
2010-08-19 22:01:12 +02:00