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>
|
||||
|
||||
* 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
2
NEWS
|
@ -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*
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user