summaryrefslogtreecommitdiff
path: root/psycopg/lobject.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix Windows 64bit lobject support for very (>2GB) large objectsJason Erickson2016-03-101-2/+2
| | | | The type 'long' with Windows Visual C is 32bits in size for both 32bit and 64bit platforms. Changed type of variables that could be > 2GB from long to Py_ssize_t.
* Use lseek64 and ltell64 to support large object greater than 2gb in size.Blake Rouse2014-12-251-2/+2
|
* Store a PGresult in the Exception errorDaniele Varrazzo2013-03-191-2/+2
| | | | | This makes the Diagnostics independent from further operations on the cursor and allows using it with exceptions not generated by a cursor.
* Further modeling of exception raisingDaniele Varrazzo2012-03-041-12/+12
|
* Dropped isolation level from the connection objectDaniele Varrazzo2011-06-031-1/+1
| | | | | | | | | | Don't issue a SET TRANSACTION ISOLATION LEVEL at every begin: use PG's GUC default, eventually set by set_transaction. Dropped the last query at connection, yay! Method set_isolation_level() and property isolation_level refactored using the new structures, keeping the previous semantic.
* Stricter declaration and correct use of psyco_set_errorDaniele Varrazzo2011-02-211-2/+2
| | | | | | | | | | It has long been used in wrong ways, with the function receiving a connection or lobject instead of a cursor. It has always been unnoticed (nobody has noticed the wrong object attached to the exception in the wrong cases) but it started crashing the interpreter with Python 3.2 on Windows. Thanks to Jason Erickson for finding the problem and helping fixing it.
* Large object mode parsing refactoredDaniele Varrazzo2011-01-101-2/+9
| | | | Added parsing of text/binary mode.
* Internal imports simplified.Daniele Varrazzo2010-12-121-3/+0
| | | | | | | | | | .c files only need to import psycopg.h: it will in turn import dependencies from Python and libpq and configure.h. psycopg.h should be the first to be imported, so the basic imports are not required in the .h's As a guideline I'm trying to import from the most specific to the most generic to detect missing imports in the .h's.
* Support large objects truncating.Jan UrbaƄski2010-03-291-0/+1
| | | | | | The lobject.truncate(len=0) method will be available if psycopg2 has been built against libpq from 8.3 or later (which is when the lobject truncating support has been introduced).
* Changes license to LGPL3 + OpenSSL exception on all source filesFederico Di Gregorio2010-02-121-12/+16
|
* * psycopg/lobject.h (lobjectObject): remove "mode" struct member,James Henstridge2008-05-061-2/+0
| | | | since it was unused.
* * psycopg/lobject_*.c: replace uses of the closed struct member,James Henstridge2008-05-061-6/+8
| | | | | | | | and change the Python level attribute to a getset. * psycopg/lobject.h (lobjectObject): remove the closed member, since "fd < 0" gives us the same information. Reorder the struct members for better packing.
* * psycopg/lobject*: const'ify the code.James Henstridge2008-05-061-4/+6
|
* * psycopg/lobject.h: don't export the lobjectType symbol.James Henstridge2008-05-051-1/+1
|
* Some changes to the lobject code to match changes in pqpath.[ch].James Henstridge2008-05-051-10/+11
|
* Added some file-like attributes to lobject.Federico Di Gregorio2006-09-021-2/+4
|
* Large objects landing..Federico Di Gregorio2006-09-021-0/+9
|
* Missing file.Federico Di Gregorio2006-09-011-1/+5
|
* psycopg is enlarging..Federico Di Gregorio2006-09-011-0/+74