Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | Fixed typo in tests | Daniele Varrazzo | 2014-12-25 | 1 | -1/+1 | |
| | | | ||||||
| * | | Added documentation about the lo64 support | Daniele Varrazzo | 2014-12-25 | 3 | -17/+57 | |
| | | | ||||||
| * | | Keep into account psycopg build in lo64 tests | Daniele Varrazzo | 2014-12-25 | 1 | -10/+23 | |
| | | | ||||||
| * | | Guard against overflows when using the lo32 api | Daniele Varrazzo | 2014-12-25 | 1 | -7/+28 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If psycopg supports lo64 but the server doesn't the user may pass values that would overflow the api range, resulting in: lo.seek((2<<30)) *** OperationalError: ERROR: invalid seek offset: -2147483648 Also improved the error messages and guard against INT_MIN for negative seek offsets. | |||||
| * | | Fixed mismatched types in debug print | Daniele Varrazzo | 2014-12-25 | 1 | -3/+3 | |
| | | | ||||||
| * | | Don't try and compile lo64 support on 32 bits Python | Daniele Varrazzo | 2014-12-25 | 1 | -2/+2 | |
| | | | | | | | | | | | | We can't fit more than 31 bits in a long anyway. | |||||
| * | | Add the flag 'lo64' to the version if psycopg supports the lo_*64 api | Daniele Varrazzo | 2014-12-25 | 1 | -0/+10 | |
| | | | ||||||
| * | | Use ifdef instead of if to check LO64 | Daniele Varrazzo | 2014-12-25 | 3 | -7/+5 | |
| | | | ||||||
| * | | Fixed check for PG version | Daniele Varrazzo | 2014-12-25 | 1 | -2/+5 | |
| | | | | | | | | | | | | It would have failed in PostgreSQL 10.0. | |||||
| * | | Check server_version before using lo_*64 functions. If less tahn 9.3 old ↵ | Blake Rouse | 2014-12-25 | 1 | -3/+15 | |
| | | | | | | | | | | | | none 64bit functions will be use. | |||||
| * | | Modify truncate to use lo_truncate64. Use HAVE_LO64 define to use new lo_*64 ↵ | Blake Rouse | 2014-12-25 | 4 | -20/+86 | |
| | | | | | | | | | | | | methods. Check size of offset and length for versions without LO64. | |||||
| * | | Use lseek64 and ltell64 to support large object greater than 2gb in size. | Blake Rouse | 2014-12-25 | 4 | -19/+37 | |
|/ / | ||||||
* | | Merge pull request #273 from eriklee/master | Federico Di Gregorio | 2014-11-17 | 1 | -1/+1 | |
|\ \ | | | | | | | Correct exausted -> exhausted typo in exception | |||||
| * | | Correct exausted -> exhausted typo | Erik Lee | 2014-11-17 | 1 | -1/+1 | |
|/ / | ||||||
* | | Merge pull request #272 from yoloseem/timetz | Federico Di Gregorio | 2014-11-13 | 2 | -2/+15 | |
|\ \ | |/ | | | Cast time into timetz when the tzinfo field is set. | |||||
| * | Cast time into timetz when the tzinfo field is set. | Hyunjun Kim | 2014-11-13 | 2 | -2/+15 | |
|/ | ||||||
* | Merge pull request #271 from tokheim/master | Federico Di Gregorio | 2014-11-03 | 1 | -1/+3 | |
|\ | | | | | | | | | | | Correction to type adaption example It is OK for an adapted object to return the escaped string on __str__ calls but getquoted() is the canonical method. | |||||
| * | Correction to type adaption example, making it more transparent | Asmund Tokheim | 2014-11-02 | 1 | -1/+3 | |
|/ | ||||||
* | Don't try to close the server cursor in error state | Daniele Varrazzo | 2014-09-16 | 3 | -3/+36 | |
| | | | | | | | | | `close()` is implicitly called by `__exit__()`, so an exit on error would run a query on a inerr connection, causing another exception hiding the original one. The fix is on `close()`, not on `__exit__()`, because the semantic of the latter is simply to call the former. Closes #262. | |||||
* | In 2010 I couldn't speak English | Daniele Varrazzo | 2014-09-16 | 1 | -11/+13 | |
| | ||||||
* | Fix typo in docs | Tomer Chachamu | 2014-09-01 | 1 | -2/+2 | |
| | ||||||
* | Don't need to build the env for a sdist | Daniele Varrazzo | 2014-09-01 | 1 | -1/+0 | |
| | | | | After 2.5 we are not releasing the html docs in the sdist anymore. | |||||
* | Added scripts to release and upload docs | Daniele Varrazzo | 2014-09-01 | 3 | -0/+72 | |
| | ||||||
* | Release notes cleanup before releasing 2.4.5 | Daniele Varrazzo | 2014-08-31 | 1 | -7/+7 | |
| | ||||||
* | Fixed excessively strict notices test | Daniele Varrazzo | 2014-08-31 | 1 | -3/+0 | |
| | | | | | Failing with PG 9.4 because it generates other debug messages during the test run (rehashing catalog cache). | |||||
* | Added plural version of the tickets role | Daniele Varrazzo | 2014-08-31 | 2 | -27/+34 | |
| | ||||||
* | Point tickets to GitHub instead of Lighthouse | Daniele Varrazzo | 2014-08-31 | 2 | -3/+18 | |
| | | | | | Keep into account the numbers reshuffling: Lighthouse bugs with a number matching a GitHub merge request are shifted ahead. | |||||
* | Use the readme as PyPI desctiption | Daniele Varrazzo | 2014-08-31 | 1 | -2/+10 | |
| | ||||||
* | Dropped creation of errcodes with missing spec field | Daniele Varrazzo | 2014-08-28 | 3 | -14/+3 | |
| | | | | | On further inspection these names are just aliases for values already defined: we don't need the duplication. | |||||
* | Clear adapters in test to maintain reference count | Daniele Varrazzo | 2014-08-28 | 1 | -4/+14 | |
| | ||||||
* | Fixed memory leak with large objects | Daniele Varrazzo | 2014-08-28 | 2 | -7/+7 | |
| | | | | | | | | Deallocating closed large objects failed to decrement the connection refcount. The fact the lobject is closed doesn't matter for refcount. Issue detected by the always useful scripts/refcounter.py With an extra bit of unrequested whitespace love. | |||||
* | Added test to verify _psycopg can be imported | Daniele Varrazzo | 2014-08-28 | 2 | -1/+28 | |
| | ||||||
* | Don't import psycopg2.tz into the C extension | Daniele Varrazzo | 2014-08-28 | 3 | -39/+34 | |
| | | | | | | | | | | | | | | | | | | | This makes possible to import _psycopg directly, after adding the package directory to the pythonpath. This enables hacks such as: sys.path.insert(0, '/path/to/psycopg2') import _psycopg sys.modules['psycopg2._psycopg'] = _psycopg sys.path.pop(0) which can work around e.g. the problem of #201, freeze that cannot freeze psycopg2. Well, freeze cannot freeze it because it's just not designed to deal with C extensions. At least now the frozen application can hack the pythonpath and work around the limitation by importing _psycopg as above and then doing the rest of the imports normally. Keeping long-lived references to python objects is bad anyway: the tz module couldn't be reloaded before. | |||||
* | Direct link to the install docs in the readme | Daniele Varrazzo | 2014-08-24 | 1 | -1/+3 | |
| | ||||||
* | Use virtualenv as build environment for the docs | Daniele Varrazzo | 2014-08-24 | 3 | -31/+21 | |
| | ||||||
* | Self-updating copyright year in docs | Daniele Varrazzo | 2014-08-24 | 1 | -1/+3 | |
| | ||||||
* | Document we known 9.4 errorcodes | Daniele Varrazzo | 2014-08-24 | 2 | -1/+2 | |
| | ||||||
* | Take the PYTHONPATH into account when building the docs | Daniele Varrazzo | 2014-08-24 | 1 | -2/+2 | |
| | ||||||
* | Move the `extras` module up in the docs | Daniele Varrazzo | 2014-08-24 | 1 | -1/+1 | |
| | | | | It is more interesting than `tz` and `pool`. | |||||
* | Fixed doc example about Error attributes | Daniele Varrazzo | 2014-08-24 | 1 | -21/+22 | |
| | | | | | | Catch the Error, not everything! Also, whitespaces. | |||||
* | Merge branch 'clean-text-files' | Daniele Varrazzo | 2014-08-24 | 7 | -189/+79 | |
|\ | ||||||
| * | Dropped outdated HACKING file | Daniele Varrazzo | 2014-08-24 | 3 | -45/+1 | |
| | | ||||||
| * | Dropped content from the INSTALL file | Daniele Varrazzo | 2014-08-24 | 1 | -102/+3 | |
| | | | | | | | | The docs have it right. | |||||
| * | Added info about running the test suite in the docs | Daniele Varrazzo | 2014-08-24 | 1 | -2/+29 | |
| | | | | | | | | | | They were in the INSTALL file, which is quite out-of-date now. Also fixed a couple of other things. | |||||
| * | Readme cleaned up and converted to reST | Daniele Varrazzo | 2014-08-24 | 4 | -40/+46 | |
|/ | | | | | | | Dropped outdated info and references to the INSTALL, which is less up-to-date than the docs. Converted to reST to have it prettier on GitHub. | |||||
* | Merge branch 'drop-flags' | Daniele Varrazzo | 2014-08-24 | 12 | -85/+4 | |
|\ | ||||||
| * | Dropped HAVE_PQFREEMEM flag | Daniele Varrazzo | 2014-08-24 | 3 | -7/+3 | |
| | | | | | | | | It was necessary before PG 7.4, in versions which have long been unsupported. | |||||
| * | Dropped PSYCOPG_NEW_BOOLEAN flag | Daniele Varrazzo | 2014-08-24 | 2 | -11/+1 | |
| | | | | | | | | | | | | | | Introduced in 2.0 beta 8, 2006 A.D. Went absolutely untouched in 8 years of refactoring, when Python 2.5 and PostgreSQL 8.1 roamed the earth. I would say it has stood the test of the time. | |||||
| * | Dropped PSYCOPG_EXTENSIONS flag | Daniele Varrazzo | 2014-08-23 | 10 | -69/+2 | |
|/ | | | | | | Building without extensions has been long broken and nobody really cares about a pure-DBAPI implementation (which could be created using a wrapper instead). | |||||
* | Merge branch 'withhold-transactions' | Daniele Varrazzo | 2014-08-21 | 5 | -18/+69 | |
|\ |