Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Use wrap to fix names of decorated test methods | Daniele Varrazzo | 2013-03-20 | 4 | -23/+41 | |
| | | | | | | | | | | | | | | Decorators not using wrap() prevent running the test from command line, e.g. with: python tests/__init__.py test_module.TestSuite.test_method | |||||
| * | Fixed broken test decorator preventing 3 tests to run | Daniele Varrazzo | 2013-03-20 | 1 | -0/+2 | |
| | | ||||||
* | | Avoid encoding strdup in qstring adapter | Daniele Varrazzo | 2013-04-05 | 1 | -0/+16 | |
| | | | | | | | | | | | | Dropped encoding parameter in the constructor: it is used nowhere and not documented. Use directly the connection encoding if available, else the previous latin1 fallback. | |||||
* | | Use wrap to fix names of decorated test methods | Daniele Varrazzo | 2013-03-20 | 4 | -24/+42 | |
| | | | | | | | | | | | | | | Decorators not using wrap() prevent running the test from command line, e.g. with: python tests/__init__.py test_module.TestSuite.test_method | |||||
* | | Fixed broken test decorator preventing 3 tests to run | Daniele Varrazzo | 2013-03-20 | 1 | -4/+6 | |
|/ | ||||||
* | Merge branch 'diagnostics' into devel | Daniele Varrazzo | 2013-03-20 | 1 | -0/+32 | |
|\ | ||||||
| * | Added tests to verify the new Diagnostics properties | Daniele Varrazzo | 2013-03-20 | 1 | -0/+32 | |
| | | | | | | | | | | | | | | diag can be used on exceptions raised without cursor and is independent from the cursor. Docs updated to reflect the changes. | |||||
* | | Tests tweaked to run on all the supported versions | Daniele Varrazzo | 2013-03-18 | 3 | -14/+15 | |
| | | ||||||
* | | Merge branch 'diagnostics' into devel | Daniele Varrazzo | 2013-03-18 | 1 | -1/+86 | |
|\ \ | |/ | ||||||
| * | Added test to verify Diagnostics works after copy errors | Daniele Varrazzo | 2013-03-18 | 1 | -0/+11 | |
| | | ||||||
| * | Added test to verify Diagnostics reference disposal | Daniele Varrazzo | 2013-03-18 | 1 | -0/+25 | |
| | | ||||||
| * | Added all supported properties to the Diagnostic object | Daniele Varrazzo | 2013-03-17 | 1 | -1/+31 | |
| | | ||||||
| * | Work-in-progress support for retrieving PG_DIAG result error fields. | Matthew Woodcraft | 2013-03-17 | 1 | -1/+20 | |
| | | ||||||
* | | Fixed exception handling in disconnection test | Daniele Varrazzo | 2013-03-16 | 1 | -3/+5 | |
| | | | | | | | | OperationalError is DatabaseError's subclass. | |||||
* | | Fixed Decimal range tests | Daniele Varrazzo | 2013-03-16 | 1 | -2/+2 | |
| | | ||||||
* | | Fixed handling of database disconnection in tests in green mode | Daniele Varrazzo | 2013-03-16 | 1 | -0/+3 | |
| | | ||||||
* | | Properly cleanup memory of broken connections | Daniele Varrazzo | 2013-03-16 | 2 | -1/+33 | |
| | | | | | | | | Fixed ticket #148. | |||||
* | | Fix tests for Postgres 9.3 | Catalin Iacob | 2013-03-16 | 2 | -0/+9 | |
|/ | | | | | | | Postgres 9.3 turns messages about implicit indexes and sequences from NOTICE to DEBUG1 so the tests fail with a default 9.3 server configuration because the client doesn't get any NOTICE. Fix it by also asking for DEBUG1 messages from the server when testing against Postgres >= 9.3. | |||||
* | Merge branch 'py33' into devel | Daniele Varrazzo | 2012-12-22 | 1 | -2/+2 | |
|\ | ||||||
| * | Return memoryview object of type "c" instead of "B" from bytea | Daniele Varrazzo | 2012-09-21 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | In Python 3.3 items are returned as int instead of chars. I'm not sure the way I did it is correct: worth asking some hardcore Python dev. Fixed tests after the stricter memview comparison rules in Py 3.3. | |||||
* | | Fixed pickling of DictRow objects too | Daniele Varrazzo | 2012-12-11 | 1 | -0/+14 | |
| | | ||||||
* | | Fixed pickling of RealDictRow objects | Daniele Varrazzo | 2012-12-10 | 1 | -0/+12 | |
| | | ||||||
* | | Merge branch 'contextmanager' into devel | Daniele Varrazzo | 2012-12-04 | 2 | -0/+219 | |
|\ \ | ||||||
| * | | Make sure to call subclasses methods on context exit | Daniele Varrazzo | 2012-12-03 | 1 | -0/+55 | |
| | | | ||||||
| * | | Added support for with statement for connection and cursor | Daniele Varrazzo | 2012-12-03 | 2 | -0/+164 | |
| | | | | | | | | | | | | | | | The implementation should be conform to the DBAPI, although the "with" extension has not been released yet. | |||||
* | | | Fixed empty strings handling in composite caster | Daniele Varrazzo | 2012-12-03 | 1 | -0/+21 | |
|/ / | | | | | | | Closes ticket #141. | |||||
* | | Fixed pickling of FixedOffsetTimezone objects | Daniele Varrazzo | 2012-10-21 | 1 | -0/+18 | |
| | | | | | | | | | | | | | | I have also verified that the fixed class can unpickle instance pickled with the buggy one and viceversa. Fixes ticket #135. | |||||
* | | Close the connection on error in callback | Daniele Varrazzo | 2012-10-06 | 1 | -3/+16 | |
| | | | | | | | | | | | | | | Unfortunately PQcancel blocks, so it's not better than PQgetResult. It has been suggested to use PQreset in non-blocking way but this would give the Python program the burden of handling a connection done but not configured in an unexpected place. | |||||
* | | Merge branch 'range-type' into devel | Daniele Varrazzo | 2012-09-27 | 1 | -1/+492 | |
|\ \ | ||||||
| * | | Fixed search of types into schemas. | Daniele Varrazzo | 2012-09-24 | 1 | -0/+27 | |
| | | | | | | | | | | | | | | | | | | We don't need to look for stuff implicitly into pg_catalog as all the builtin ranges are already registered. So just search into 'public' if the schema is not specified. | |||||
| * | | Added test for range not found | Daniele Varrazzo | 2012-09-24 | 1 | -0/+6 | |
| | | | ||||||
| * | | Added containment tests for unbounded intervals | Daniele Varrazzo | 2012-09-23 | 1 | -0/+23 | |
| | | | ||||||
| * | | Range objects cannot be ordered | Daniele Varrazzo | 2012-09-23 | 1 | -0/+7 | |
| | | | ||||||
| * | | Range objects are nonzero when not empty | Daniele Varrazzo | 2012-09-23 | 1 | -0/+6 | |
| | | | ||||||
| * | | Range objects are immutable and hashable | Daniele Varrazzo | 2012-09-23 | 1 | -0/+21 | |
| | | | ||||||
| * | | Added in operator for ranges | Daniele Varrazzo | 2012-09-23 | 1 | -0/+29 | |
| | | | ||||||
| * | | NumberRange renamed to NumericRange | Daniele Varrazzo | 2012-09-23 | 1 | -17/+17 | |
| | | | | | | | | | | | | | | | | | | I was avoiding Numeric to avoid conflicting with the 'numeric' Postgres type, which is an alias for 'decimal'. But now that there is a single numeric range I can use the preferred name | |||||
| * | | Dropped Range classes for specific numeric types | Daniele Varrazzo | 2012-09-23 | 1 | -7/+7 | |
| | | | ||||||
| * | | Added first implementation of Range type, adapter, typecaster | Daniele Varrazzo | 2012-09-23 | 1 | -5/+374 | |
| |/ | ||||||
* | | Merge branch 'json' into devel | Daniele Varrazzo | 2012-09-27 | 1 | -4/+248 | |
|\ \ | ||||||
| * | | Don't create/register a json array typecaster if no oid provided | Daniele Varrazzo | 2012-09-24 | 1 | -0/+12 | |
| | | | ||||||
| * | | Fixed json typecaster with NULL input | Daniele Varrazzo | 2012-09-20 | 1 | -0/+10 | |
| | | | ||||||
| * | | Dropped keywords passthrough in Json adapter | Daniele Varrazzo | 2012-09-19 | 1 | -7/+44 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass a dumps function instead. Allow customizing by either arg passing or subclassing. The basic Json class now raises ImportError on getquoted() if json is not available, thus allowing using a customized Json subclass even when the json module is not available. | |||||
| * | | Added register_default_json() function | Daniele Varrazzo | 2012-09-19 | 1 | -0/+18 | |
| | | | | | | | | | | | | Register a typecaster for PostgreSQL 9.2 json. | |||||
| * | | First parameter of register_json defaults to None | Daniele Varrazzo | 2012-09-19 | 1 | -1/+1 | |
| | | | ||||||
| * | | Added json typecaster | Daniele Varrazzo | 2012-09-19 | 1 | -0/+92 | |
| | | | ||||||
| * | | Added Json adapter | Daniele Varrazzo | 2012-09-19 | 1 | -4/+79 | |
| | | | ||||||
* | | | Merge branch 'composite-custom' into devel | Daniele Varrazzo | 2012-09-27 | 1 | -1/+28 | |
|\ \ \ | ||||||
| * | | | Added schema attribute to CompositeCaster | Daniele Varrazzo | 2012-09-22 | 1 | -0/+2 | |
| | | | | ||||||
| * | | | Make CompositeCaster easier to subclass | Daniele Varrazzo | 2012-09-22 | 1 | -1/+26 | |
| | |/ | |/| |