[PR][php-src][#556][master] - Additional attribute to disable column types resolving to native in PDO #64542
| From: | noreply@php.net | Date: | Tue, 03 Mar 2015 06:26:44 +0000 |
| Subject: | [PR][php-src][#556][master] - Additional attribute to disable column types resolving to native in PDO #64542 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-2538@lists.php.net to get a copy of this message | ||
You can view the Pull Request on github:
https://github.com/php/php-src/pull/556
Warning: according to github, the Pull Request cannot be merged without manual conflict resolution!
Pull Request Description:
PDO/pgsql function
get_column_meta() return column type id and its native type.
To get native_type it make an sql-request: SELECT TYPNAME FROM PG_TYPE WHERE OID=%d
**for each** column. It is very slow.
So, this is workaround:
Add new statement option PGSQL_ATTR_DISABLE_RESOLVE_NATIVE_TYPE_ON_META, which prevents
resolving "native_type".