Preparing release 1.99.12.

This commit is contained in:
Federico Di Gregorio 2005-03-02 14:16:55 +00:00
parent 3cf4b7ca6f
commit e8e6c0ada3
4 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,12 @@
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.
* psycopg/pqpath.c (_pq_copy_out_v3): implemented and working.

2
NEWS
View File

@ -3,8 +3,6 @@ What's new in psycopg 1.99.12
* .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
backend using libpq protocol 3 (this also removes all asprintf calls:
build on win32 works again.) A protocol 3-enabled psycopg *can*

View File

@ -123,8 +123,7 @@ qstring_quote(qstringObject *self)
}
/* encode the string into buffer */
s = PyString_AsString(str);
len = strlen(s);
PyString_AsStringAndSize(str, &s, &len);
buffer = (char *)PyMem_Malloc((len*2+3) * sizeof(char));
if (buffer == NULL) {

View File

@ -47,7 +47,7 @@ from distutils.core import setup, Extension
from distutils.sysconfig import get_python_inc
import distutils.ccompiler
PSYCOPG_VERSION = '1.99.11/devel'
PSYCOPG_VERSION = '1.99.12'
version_flags = []
have_pydatetime = False