mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +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>
|
2004-12-14 Federico Di Gregorio <fog@debian.org>
|
||||||
|
|
||||||
* Mm.. release 1.99.11.
|
* Mm.. release 1.99.11.
|
||||||
|
|
|
@ -2,7 +2,7 @@ recursive-include psycopg *.c *.h
|
||||||
recursive-include lib *.py
|
recursive-include lib *.py
|
||||||
recursive-include ZPsycopgDA *.py *.gif *.dtml
|
recursive-include ZPsycopgDA *.py *.gif *.dtml
|
||||||
recursive-include examples *.py somehackers.jpg whereareyou.jpg
|
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
|
recursive-include doc TODO HACKING SUCCESS ChangeLog-1.x
|
||||||
include scripts/maketypes.sh scripts/buildtypes.py
|
include scripts/maketypes.sh scripts/buildtypes.py
|
||||||
include AUTHORS README INSTALL ChangeLog setup.py setup.cfg
|
include AUTHORS README INSTALL ChangeLog setup.py setup.cfg
|
||||||
|
|
|
@ -353,8 +353,6 @@ pq_is_busy(connectionObject *conn)
|
||||||
int
|
int
|
||||||
pq_execute(cursorObject *curs, const char *query, int async)
|
pq_execute(cursorObject *curs, const char *query, int async)
|
||||||
{
|
{
|
||||||
int err;
|
|
||||||
|
|
||||||
/* if the status of the connection is critical raise an exception and
|
/* if the status of the connection is critical raise an exception and
|
||||||
definitely close the connection */
|
definitely close the connection */
|
||||||
if (curs->conn->critical) {
|
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 */
|
to respect the old DBAPI-2.0 compatible behaviour */
|
||||||
if (async == 0) {
|
if (async == 0) {
|
||||||
Dprintf("pq_execute: entering syncronous DBAPI compatibility mode");
|
Dprintf("pq_execute: entering syncronous DBAPI compatibility mode");
|
||||||
do {
|
if (pq_fetch(curs) == -1) return -1;
|
||||||
err = pq_fetch(curs);
|
|
||||||
if (err == -1) return -1;
|
|
||||||
} while (err == 1);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
curs->conn->async_cursor = (PyObject*)curs;
|
curs->conn->async_cursor = (PyObject*)curs;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user