We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c08500 commit 7c0113dCopy full SHA for 7c0113d
1 file changed
src/Database/Drivers/PgSqlDriver.php
@@ -218,7 +218,12 @@ public function getForeignKeys(string $table): array
218
219
public function getColumnTypes(\PDOStatement $statement): array
220
{
221
- return Nette\Database\Helpers::detectTypes($statement);
+ static $cache;
222
+ $item = &$cache[$statement->queryString];
223
+ if ($item === null) {
224
+ $item = Nette\Database\Helpers::detectTypes($statement);
225
+ }
226
+ return $item;
227
}
228
229
0 commit comments