com php-src: Fixed Bug #70092 pg_field_type() is to o slow: ext/pgsql/pgsql.c
| From: | Yasuo Ohgaki | Date: | Sat, 25 Jul 2015 20:29:27 +0000 |
| Subject: | com php-src: Fixed Bug #70092 pg_field_type() is to o slow: ext/pgsql/pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88161@lists.php.net to get a copy of this message | ||
Commit: 62515a1dbb6132051d657ce4df7cc5da32b1a039
Author: Yasuo Ohgaki <yohgaki@php.net> Sun, 26 Jul 2015 05:29:06 +0900
Parents: 66fd52939beed9f2ed367cc380f35fc13af4e66d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=62515a1dbb6132051d657ce4df7cc5da32b1a039
Log:
Fixed Bug #70092 pg_field_type() is too slow
Bugs:
https://bugs.php.net/70092
Changed paths:
M ext/pgsql/pgsql.c
Diff:
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 1172682..888ae76 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);