summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Fixed typo in testsDaniele Varrazzo2014-12-251-1/+1
| | |
| * | Added documentation about the lo64 supportDaniele Varrazzo2014-12-253-17/+57
| | |
| * | Keep into account psycopg build in lo64 testsDaniele Varrazzo2014-12-251-10/+23
| | |
| * | Guard against overflows when using the lo32 apiDaniele Varrazzo2014-12-251-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 printDaniele Varrazzo2014-12-251-3/+3
| | |
| * | Don't try and compile lo64 support on 32 bits PythonDaniele Varrazzo2014-12-251-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 apiDaniele Varrazzo2014-12-251-0/+10
| | |
| * | Use ifdef instead of if to check LO64Daniele Varrazzo2014-12-253-7/+5
| | |
| * | Fixed check for PG versionDaniele Varrazzo2014-12-251-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 Rouse2014-12-251-3/+15
| | | | | | | | | | | | none 64bit functions will be use.
| * | Modify truncate to use lo_truncate64. Use HAVE_LO64 define to use new lo_*64 ↵Blake Rouse2014-12-254-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 Rouse2014-12-254-19/+37
|/ /
* | Merge pull request #273 from eriklee/masterFederico Di Gregorio2014-11-171-1/+1
|\ \ | | | | | | Correct exausted -> exhausted typo in exception
| * | Correct exausted -> exhausted typoErik Lee2014-11-171-1/+1
|/ /
* | Merge pull request #272 from yoloseem/timetzFederico Di Gregorio2014-11-132-2/+15
|\ \ | |/ | | Cast time into timetz when the tzinfo field is set.
| * Cast time into timetz when the tzinfo field is set.Hyunjun Kim2014-11-132-2/+15
|/
* Merge pull request #271 from tokheim/masterFederico Di Gregorio2014-11-031-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 transparentAsmund Tokheim2014-11-021-1/+3
|/
* Don't try to close the server cursor in error stateDaniele Varrazzo2014-09-163-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 EnglishDaniele Varrazzo2014-09-161-11/+13
|
* Fix typo in docsTomer Chachamu2014-09-011-2/+2
|
* Don't need to build the env for a sdistDaniele Varrazzo2014-09-011-1/+0
| | | | After 2.5 we are not releasing the html docs in the sdist anymore.
* Added scripts to release and upload docsDaniele Varrazzo2014-09-013-0/+72
|
* Release notes cleanup before releasing 2.4.5Daniele Varrazzo2014-08-311-7/+7
|
* Fixed excessively strict notices testDaniele Varrazzo2014-08-311-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 roleDaniele Varrazzo2014-08-312-27/+34
|
* Point tickets to GitHub instead of LighthouseDaniele Varrazzo2014-08-312-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 desctiptionDaniele Varrazzo2014-08-311-2/+10
|
* Dropped creation of errcodes with missing spec fieldDaniele Varrazzo2014-08-283-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 countDaniele Varrazzo2014-08-281-4/+14
|
* Fixed memory leak with large objectsDaniele Varrazzo2014-08-282-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 importedDaniele Varrazzo2014-08-282-1/+28
|
* Don't import psycopg2.tz into the C extensionDaniele Varrazzo2014-08-283-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 readmeDaniele Varrazzo2014-08-241-1/+3
|
* Use virtualenv as build environment for the docsDaniele Varrazzo2014-08-243-31/+21
|
* Self-updating copyright year in docsDaniele Varrazzo2014-08-241-1/+3
|
* Document we known 9.4 errorcodesDaniele Varrazzo2014-08-242-1/+2
|
* Take the PYTHONPATH into account when building the docsDaniele Varrazzo2014-08-241-2/+2
|
* Move the `extras` module up in the docsDaniele Varrazzo2014-08-241-1/+1
| | | | It is more interesting than `tz` and `pool`.
* Fixed doc example about Error attributesDaniele Varrazzo2014-08-241-21/+22
| | | | | | Catch the Error, not everything! Also, whitespaces.
* Merge branch 'clean-text-files'Daniele Varrazzo2014-08-247-189/+79
|\
| * Dropped outdated HACKING fileDaniele Varrazzo2014-08-243-45/+1
| |
| * Dropped content from the INSTALL fileDaniele Varrazzo2014-08-241-102/+3
| | | | | | | | The docs have it right.
| * Added info about running the test suite in the docsDaniele Varrazzo2014-08-241-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 reSTDaniele Varrazzo2014-08-244-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 Varrazzo2014-08-2412-85/+4
|\
| * Dropped HAVE_PQFREEMEM flagDaniele Varrazzo2014-08-243-7/+3
| | | | | | | | It was necessary before PG 7.4, in versions which have long been unsupported.
| * Dropped PSYCOPG_NEW_BOOLEAN flagDaniele Varrazzo2014-08-242-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 flagDaniele Varrazzo2014-08-2310-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 Varrazzo2014-08-215-18/+69
|\