Commit Graph
120 Commits
Author SHA1 Message Date
Cédric Krier ff5bfb26ba Signal is a keyword for MySQL 5.5
issue2037
review30006
2011-06-07 11:58:55 +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 e177c09547 Remove FLUSH TABLES WITH READ LOCK on MySQL backend
It creates deadlock
2011-03-06 05:02:33 +01:00
Cédric Krier c5c449e1a0 Fix migration speed of dates from timestamp(0) to timestamp(6) 2011-02-16 16:03:51 +01: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 c10d4c68fe Fix MySQL cast varchar for http://bugs.mysql.com/bug.php?id=34564 2010-10-14 00:02:52 +02:00
Cédric Krier 9bfc2b93e1 Add adapter for Float in PostgreSQL backend for issue1707 2010-10-03 18:42:58 +02:00
Cédric Krier a5cbd5264f Old versions of psycopg2 don't have PYDATE, PYDATETIME and PYTIME 2010-09-26 10:47:37 +02:00
Cédric Krier 7314ffc54d Fix when psycopg is compiled with mxdatetime option for issue1698 2010-09-25 16:32:17 +02: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
Cédric Krier c4b9b9e6c4 Fix typo in test query for PostgreSQL and SQLite thanks to Ralf Peschke 2010-07-11 15:29:29 +02:00
Cédric Krier aabaa8851a Fix extract function in SQLite to work with date 2010-07-08 20:01:11 +02:00
Cédric Krier 483afed26a Catch only Exception according to PEP 352 2010-07-08 19:53:39 +02:00
Cédric Krier 0c7b1f1fe4 Fix DateTime microsecond replacement
replace method return a new datetime
2010-07-04 22:56:23 +02:00
Cédric Krier 9b0cf2fbe4 Fix test for datetime in Date fields 2010-06-09 20:30:01 +02:00
Cédric Krier 9922b401a7 Handle date and datetime in XML-RPC 2010-06-09 19:52:47 +02:00
Cédric Krier 173f7df140 Allow to use EXTRACT EPOCH with MySQL 2010-06-06 11:39:30 +02:00
Cédric Krier ed1965f4bf Extend Float to work with Decimal for issue1575 thanks to gadaga 2010-06-06 11:30:33 +02:00
Cédric Krier 473f94dc2b Use str to convert long into Decimal 2010-03-12 17:45:22 +01:00
Cédric Krier 0415e46c73 Don't allow to use float in Numeric fields
The goal is to prevent to introduce float errors in Numeric fields.
There is a trick for external protocols like XML-RPC and JSON-RPC where the
string representation is stored in the Float object and will be used to
convert it into Decimal.
2010-03-12 17:41:07 +01:00
Cédric Krier c162fd3583 Use only 15 decimal digits for MySQL double to match the Python float 2010-03-12 12:22:55 +01:00
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 4488f99593 Use Tryton CHECK constraint for MySQL
MySQL has only partial constraints, it doesn't manage CHECK.
So we use Tryton to check those constraints.
2010-03-11 12:08:15 +01:00
Cédric Krier 596c8fce39 Use double instead of float to store Float fields in MySQL
The precision of MySQL float is not enough to handle all Python floats.
From http://docs.python.org/tutorial/floatingpoint.html:
"...almost all platforms map Python floats to IEEE-754 “double precision”"
2010-03-11 12:02:29 +01:00
Cédric Krier 00677cc383 merge 2010-03-04 14:02:53 +01:00
Cédric Krier 20741b613d Improve unittests to run trytond from tests
Use sqlite as default backend
Add skiptest attribute to data tag
Add option to test_tryton to run tests from all modules
2010-03-04 14:02:27 +01:00
Cédric Krier 886533e1c5 Add replace python function for old sqlite for issue1432 2010-03-03 18:28:58 +01:00
Cédric Krier cb63509356 Add MySQL backend 2010-02-25 16:43:04 +01:00
Cédric Krier 80ad687daf Raise NotImplementedError in interface class 2010-02-23 15:54:27 +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 6997fd60b2 Fix typo in sqlite database functions 2010-02-10 18:43:39 +01:00
Cédric Krier 6961c5c925 Fix typo 2010-02-08 09:36:32 +01:00
Cédric Krier ac9c532f41 Fix wrong initialisation type of _indexes in TableHandler of PostgreSQL
backend
2010-02-08 09:36:10 +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 5c61502db0 Update init.sql according to models and guidlines 2010-01-16 14:28:40 +01:00
Cédric Krier d68ec64069 Use column starting with "_" in alter_size to prevent naming collision 2010-01-16 14:25:05 +01:00
Cédric Krier e86ab8a32a Fix typo in logging message 2010-01-12 13:15:48 +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 cae0a76a3d Remove egenix-mx-base and replace it by python-dateutil 2009-12-17 11:39:54 +01:00
Cédric Krier e2f80d378c Add timestamp field in backend
Improve validation of DateTime values
2009-11-10 14:00:13 +01:00
Bertrand Chenal b82bb6eecb Added unit tests for date field 2009-11-06 18:40:07 +01:00
Cédric Krier 9f036b99b4 Fix extract to work with microseconds 2009-11-03 15:25:15 +01:00
Cédric Krier 7280d36966 Use custom datetime adapter that remove tzinfo for SQLite 2009-11-03 15:24:11 +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 792dfefc82 Don't convert Date and DateTime into string 2009-11-03 15:19:46 +01:00