mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
rowcount fix.
This commit is contained in:
parent
f6aaacd79b
commit
280562890b
|
@ -1,3 +1,9 @@
|
|||
2004-12-20 Federico Di Gregorio <fog@debian.org>
|
||||
|
||||
* psycopg/pqpath.c (pq_execute): removed multiple calls to
|
||||
pq_fetch in syncronous DBAPI compatibility mode to solve rowcount
|
||||
problem.
|
||||
|
||||
2004-12-14 Federico Di Gregorio <fog@debian.org>
|
||||
|
||||
* Mm.. release 1.99.11.
|
||||
|
|
|
@ -2,7 +2,7 @@ recursive-include psycopg *.c *.h
|
|||
recursive-include lib *.py
|
||||
recursive-include ZPsycopgDA *.py *.gif *.dtml
|
||||
recursive-include examples *.py somehackers.jpg whereareyou.jpg
|
||||
#recursive-include test *.py
|
||||
#recursive-include tests *.py
|
||||
recursive-include doc TODO HACKING SUCCESS ChangeLog-1.x
|
||||
include scripts/maketypes.sh scripts/buildtypes.py
|
||||
include AUTHORS README INSTALL ChangeLog setup.py setup.cfg
|
||||
|
|
|
@ -353,8 +353,6 @@ pq_is_busy(connectionObject *conn)
|
|||
int
|
||||
pq_execute(cursorObject *curs, const char *query, int async)
|
||||
{
|
||||
int err;
|
||||
|
||||
/* if the status of the connection is critical raise an exception and
|
||||
definitely close the connection */
|
||||
if (curs->conn->critical) {
|
||||
|
@ -410,10 +408,7 @@ pq_execute(cursorObject *curs, const char *query, int async)
|
|||
to respect the old DBAPI-2.0 compatible behaviour */
|
||||
if (async == 0) {
|
||||
Dprintf("pq_execute: entering syncronous DBAPI compatibility mode");
|
||||
do {
|
||||
err = pq_fetch(curs);
|
||||
if (err == -1) return -1;
|
||||
} while (err == 1);
|
||||
if (pq_fetch(curs) == -1) return -1;
|
||||
}
|
||||
else {
|
||||
curs->conn->async_cursor = (PyObject*)curs;
|
||||
|
|
Loading…
Reference in New Issue
Block a user