diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2015-07-26 05:29:06 +0900 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2015-07-26 05:29:27 +0900 |
commit | 62515a1dbb6132051d657ce4df7cc5da32b1a039 (patch) | |
tree | 16a475440914f2ea1f167ca7a289747c22cd2d05 | |
parent | 66fd52939beed9f2ed367cc380f35fc13af4e66d (diff) | |
download | php-git-62515a1dbb6132051d657ce4df7cc5da32b1a039.tar.gz |
Fixed Bug #70092 pg_field_type() is too slow
-rw-r--r-- | ext/pgsql/pgsql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 1172682bbc..888ae76cce 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2368,7 +2368,7 @@ static char *get_field_name(PGconn *pgsql, Oid oid, HashTable *list) continue; } - ZSTR_LEN(str.s) = 0; + smart_str_free(&str); smart_str_appends(&str, "pgsql_oid_"); smart_str_appends(&str, tmp_oid); smart_str_0(&str); |