summaryrefslogtreecommitdiff
path: root/psycopg/adapter_qstring.h
Commit message (Collapse)AuthorAgeFilesLines
* Work in progress on writable encodingDaniele Varrazzo2016-07-011-0/+3
| | | | | | | | | | | | | | | | Would help using adapt(unicode) to quote strings without a connection, see ticket #331. Currently in heisenbug state: if test_connection_wins_anyway and test_encoding_default run (in this order), the latter fail because the returned value is "'\xe8 '", with an extra space. Skipping the first test, the second succeed. The bad value is returned by the libpq: ql = PQescapeString(to+eq+1, from, len); just returns len = 2 and an extra space in the string... meh.
* Dropped simple type wrapper functionsDaniele Varrazzo2014-08-151-6/+0
| | | | | These functions don't need to exist: exposing the type in the module is enough. It is actually better as one may use isinstance and such.
* Avoid encoding strdup in qstring adapterDaniele Varrazzo2013-04-051-6/+1
| | | | | | 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.
* Added Python codec name to the connection.Daniele Varrazzo2010-12-211-0/+4
| | | | | This allows dropping repeated dictionary lookups with unicode query/parameters.
* Internal imports simplified.Daniele Varrazzo2010-12-121-5/+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.
* Changes license to LGPL3 + OpenSSL exception on all source filesFederico Di Gregorio2010-02-121-12/+16
|
* * psycypg/*.h: apply HIDDEN to all global variables and functionsJames Henstridge2008-01-211-2/+4
| | | | | | | | that should not be exported from the module. This results in a 5% reduction in code size and shortens the dynamic symbol table. * psycopg/config.h: If GCC >= 4.0 is installed, define the HIDDEN symbol to apply the "hidden" visibility attribute.
* Fixed both Python 2.5 and 64 bit problems.Federico Di Gregorio2007-04-101-2/+3
|
* Builds again on win32 (closes: #132).Federico Di Gregorio2006-10-291-1/+1
|
* Piet Delport patches: 1 of 3.Federico Di Gregorio2006-09-231-1/+1
|
* First half of 8.1.4 securiy patch.Federico Di Gregorio2006-05-241-0/+2
|
* * psycopg/psycopgmodule.c: fixed exceptions refcount.Daniele Varrazzo2005-11-261-1/+1
| | | | * fixed lots of doctrings and added Epydoc-generated docs support.
* Initial psycopg 2 import after SVN crash.Federico Di Gregorio2004-10-191-0/+51