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 | fa67c860e0ef6bb2a1dd556c9c3e33ad105143bc (patch) | |
tree | 1588686467c8507c518331a12e6ceae28b7c418d /ext/pdo_pgsql/pgsql_statement.c | |
parent | e6f4503f29f3492a3b2c59886371936c066c37d3 (diff) | |
download | php-git-fa67c860e0ef6bb2a1dd556c9c3e33ad105143bc.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 bf7e33448e..b5c7f42eea 100644 --- a/ext/pdo_pgsql/pgsql_statement.c +++ b/ext/pdo_pgsql/pgsql_statement.c @@ -185,7 +185,7 @@ stmt_retry: * deallocate it and retry ONCE (thies 2005.12.15) */ if (!strcmp(sqlstate, "42P05")) { - char buf[100]; /* stmt_name == "pdo_crsr_%016lx" */ + char buf[100]; /* stmt_name == "pdo_crsr_%08x" */ PGresult *res; snprintf(buf, sizeof(buf), "DEALLOCATE %s", S->stmt_name); res = PQexec(H->server, buf); |