From 62515a1dbb6132051d657ce4df7cc5da32b1a039 Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Sun, 26 Jul 2015 05:29:06 +0900 Subject: [PATCH] Fixed Bug #70092 pg_field_type() is too slow --- ext/pgsql/pgsql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1