diff options
author | Matteo Beccati <mbeccati@php.net> | 2009-11-04 19:32:27 +0000 |
---|---|---|
committer | Matteo Beccati <mbeccati@php.net> | 2009-11-04 19:32:27 +0000 |
commit | 2a481b01fb1af7ee30f7a6e4c36defee94fbcaf8 (patch) | |
tree | 9e20d9724b40dd4207dbf737b703bf9030f5430e /ext/pdo_pgsql/pgsql_statement.c | |
parent | c4bee3fa965bab9590613838ac41f0507119cecd (diff) | |
download | php-git-2a481b01fb1af7ee30f7a6e4c36defee94fbcaf8.tar.gz |
- Properly fixed bug #49985 (pdo_pgsql prepare() re-use previous aborted transaction).
# Removed usage of the memory address when generating prepared statemend names
# as uniqueness can't be enforced. Used a statment counter instead.
Diffstat (limited to 'ext/pdo_pgsql/pgsql_statement.c')
-rw-r--r-- | ext/pdo_pgsql/pgsql_statement.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/pgsql_statement.c b/ext/pdo_pgsql/pgsql_statement.c index ce53d84922..fbfdde1c07 100644 --- a/ext/pdo_pgsql/pgsql_statement.c +++ b/ext/pdo_pgsql/pgsql_statement.c @@ -157,7 +157,7 @@ stmt_retry: * deallocate it and retry ONCE (thies 2005.12.15) */ if (!strcmp(sqlstate, "42P05")) { - char buf[100]; /* stmt_name == "pdo_pgsql_cursor_%08x" */ + char buf[100]; /* stmt_name == "pdo_crsr_%08x" */ PGresult *res; snprintf(buf, sizeof(buf), "DEALLOCATE %s", S->stmt_name); res = PQexec(H->server, buf); |