Daniele Varrazzo
b9d0808f95
Added PY_2, PY_3 macros and used uniformly
2019-03-16 19:54:40 +00:00
Daniele Varrazzo
599432552a
Copyright year updated
...
ag -l Copyright | xargs sed -i \
"s/\(.*copyright (C) [0-9]\+\)\(-[0-9]\+\)\?\(.*\)/\1-$(date +%Y)\3/I"
2019-02-17 01:36:36 +00:00
Daniele Varrazzo
594df09a63
More straightforward semantics for psyco_GetDecimalType
...
Raise an exception when returning NULL, leave the caller cleaning it.
2019-01-21 02:41:58 +00:00
Daniele Varrazzo
f713dc9fc1
Preliminary test for a BYTES adapter.
...
Allow returning unparsed bytes from databases with mixed encodings. See
issue #519 .
2019-01-18 13:17:02 +00:00
Daniele Varrazzo
3295beb777
Don't look up for Python encoding
...
Store the encode/decode functions for the right codec in the connection.
The Python encoding name has been dropped of the connection to avoid the
temptation to use it...
2016-12-29 22:11:58 +01:00
Daniele Varrazzo
f439ca61d6
conn->codec rename to pyenc
2016-12-26 12:25:13 +01:00
Daniele Varrazzo
121cf3b8f8
Optimize UTF8 and Latin1 decoding
...
Cache a pointer to a fast decoding function when the connection encoding
is set so skip a repeated codec lookup for every string.
2016-10-12 01:10:31 +01:00
Daniele Varrazzo
beea32ef03
Use the Py_RETURN_NONE macro
2013-04-05 01:25:05 +01:00
Daniele Varrazzo
5bbfd38dfb
Check for errors in float adaptation
2012-03-04 04:43:14 +00:00
Daniele Varrazzo
cb6b52945b
The library can be compiled with Python 3.
...
Just compiled! No test run yet and many points to review, marked in the
code.
The patch is largely Martin von Löwis work, simplified after refactoring
in the previous commits and adapted to the new code (as the patch was
originally for Psycopg 2.0.9)
2010-12-21 04:24:36 +00:00
Daniele Varrazzo
e182201e6e
Added Python codec name to the connection.
...
This allows dropping repeated dictionary lookups with unicode
query/parameters.
2010-12-21 04:02:14 +00:00
Federico Di Gregorio
192034dc38
Fixed problem with decimal.Decimal conversions
2010-02-21 01:04:00 +01:00
Federico Di Gregorio
611606d532
Changes license to LGPL3 + OpenSSL exception on all source files
2010-02-12 23:34:53 +01:00
James Henstridge
83b03e5e36
If we are depending on Python 2.4, we don't need to make decimal module
...
support conditional.
2008-12-27 00:03:11 +09:00
James Henstridge
eae563ac96
* psycopg/*.[ch]: add const qualifier to various string arguments
...
to functions (typecast functions and conn_switch_isolation_level).
2008-01-21 17:34:08 +00:00
Daniele Varrazzo
e1dd9ca843
Fixed bug #192 (Decimal support not safe for use with multiple sub
...
interpreters) as proposed by Graham Dumpleton.
If running in the main interpreter, use a cached version of the Decimal
object. Else repeat the object lookup.
2007-10-21 03:22:55 +00:00
Daniele Varrazzo
c71b7a03d0
Added missing return in case out of memory.
2007-10-18 17:19:16 +00:00
Federico Di Gregorio
967ec370ed
int->size_t transition.
2007-04-13 01:16:22 +00:00
Federico Di Gregorio
53d10a3ddf
Fixed compile problems on old gcc.
2006-09-01 08:02:41 +00:00
Federico Di Gregorio
f202c7fc81
Preparing release 2.0.4.
2006-08-01 23:36:50 +00:00
Federico Di Gregorio
cf7701a151
Little fixes.
2006-06-15 12:39:56 +00:00
Federico Di Gregorio
6b0b634bae
Code cleanup.
2005-10-18 01:29:47 +00:00
Federico Di Gregorio
65a4b86fa2
chunk/buffer patch applied.
2005-05-09 08:11:43 +00:00
Federico Di Gregorio
cddb1a15d4
Array quoting (not completely working.)
2005-03-23 00:43:36 +00:00
Federico Di Gregorio
def14d5925
Array support works, at least for INTEGERS.
2005-03-22 16:33:57 +00:00
Federico Di Gregorio
9316c6af53
Optimizations to type casting (in preparation to array support.)
2005-03-12 06:39:47 +00:00
Federico Di Gregorio
c904d97f69
Initial psycopg 2 import after SVN crash.
2004-10-19 03:17:12 +00:00