mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
Preparing release 1.99.12.
This commit is contained in:
parent
3cf4b7ca6f
commit
e8e6c0ada3
|
@ -1,5 +1,12 @@
|
||||||
2005-03-02 Federico Di Gregorio <fog@debian.org>
|
2005-03-02 Federico Di Gregorio <fog@debian.org>
|
||||||
|
|
||||||
|
* Release 1.99.12.
|
||||||
|
|
||||||
|
* psycopg/adapter_qstring.c (qstring_quote): we now use
|
||||||
|
PyString_AsStringAndSize() instead of strlen() that would stop at
|
||||||
|
the first embedded \0 (but note that libpq quoting function will
|
||||||
|
truncate the string anyway!)
|
||||||
|
|
||||||
* COPY TO implemented using both old and new (v3) protocol.
|
* COPY TO implemented using both old and new (v3) protocol.
|
||||||
|
|
||||||
* psycopg/pqpath.c (_pq_copy_out_v3): implemented and working.
|
* psycopg/pqpath.c (_pq_copy_out_v3): implemented and working.
|
||||||
|
|
2
NEWS
2
NEWS
|
@ -3,8 +3,6 @@ What's new in psycopg 1.99.12
|
||||||
|
|
||||||
* .rowcount should be ok and in sync with psycopg 1.
|
* .rowcount should be ok and in sync with psycopg 1.
|
||||||
|
|
||||||
* Strings can contain NULLs and are quoted accordingly.
|
|
||||||
|
|
||||||
* Implemented the new COPY FROM/COPY TO code when connection to the
|
* Implemented the new COPY FROM/COPY TO code when connection to the
|
||||||
backend using libpq protocol 3 (this also removes all asprintf calls:
|
backend using libpq protocol 3 (this also removes all asprintf calls:
|
||||||
build on win32 works again.) A protocol 3-enabled psycopg *can*
|
build on win32 works again.) A protocol 3-enabled psycopg *can*
|
||||||
|
|
|
@ -123,8 +123,7 @@ qstring_quote(qstringObject *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* encode the string into buffer */
|
/* encode the string into buffer */
|
||||||
s = PyString_AsString(str);
|
PyString_AsStringAndSize(str, &s, &len);
|
||||||
len = strlen(s);
|
|
||||||
|
|
||||||
buffer = (char *)PyMem_Malloc((len*2+3) * sizeof(char));
|
buffer = (char *)PyMem_Malloc((len*2+3) * sizeof(char));
|
||||||
if (buffer == NULL) {
|
if (buffer == NULL) {
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -47,7 +47,7 @@ from distutils.core import setup, Extension
|
||||||
from distutils.sysconfig import get_python_inc
|
from distutils.sysconfig import get_python_inc
|
||||||
import distutils.ccompiler
|
import distutils.ccompiler
|
||||||
|
|
||||||
PSYCOPG_VERSION = '1.99.11/devel'
|
PSYCOPG_VERSION = '1.99.12'
|
||||||
version_flags = []
|
version_flags = []
|
||||||
|
|
||||||
have_pydatetime = False
|
have_pydatetime = False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user