Title: Result does not implement ResultInterface::getQueryResult() — fatal against current php-db/phpdb 0.6.x-dev · Issue #12 · php-db/phpdb-pgsql · GitHub
Open Graph Title: Result does not implement ResultInterface::getQueryResult() — fatal against current php-db/phpdb 0.6.x-dev · Issue #12 · php-db/phpdb-pgsql
X Title: Result does not implement ResultInterface::getQueryResult() — fatal against current php-db/phpdb 0.6.x-dev · Issue #12 · php-db/phpdb-pgsql
Description: Summary Pgsql\Result no longer satisfies PhpDb\Adapter\Driver\ResultInterface. php-db/phpdb#172 added getQueryResult() to the interface (commit 6a14886), and this package does not implement it, so loading the class is a fatal: Fatal erro...
Open Graph Description: Summary Pgsql\Result no longer satisfies PhpDb\Adapter\Driver\ResultInterface. php-db/phpdb#172 added getQueryResult() to the interface (commit 6a14886), and this package does not implement it, so ...
X Description: Summary Pgsql\Result no longer satisfies PhpDb\Adapter\Driver\ResultInterface. php-db/phpdb#172 added getQueryResult() to the interface (commit 6a14886), and this package does not implement it, so ...
Opengraph URL: https://github.com/php-db/phpdb-pgsql/issues/12
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Result does not implement ResultInterface::getQueryResult() — fatal against current php-db/phpdb 0.6.x-dev","articleBody":"## Summary\n\n`Pgsql\\Result` no longer satisfies `PhpDb\\Adapter\\Driver\\ResultInterface`. php-db/phpdb#172 added `getQueryResult()` to the interface (commit `6a14886`), and this package does not implement it, so loading the class is a fatal:\n\n```\nFatal error: Class PhpDb\\Pgsql\\Result contains 1 abstract method and must therefore be\ndeclared abstract or implement the remaining methods\n(PhpDb\\Adapter\\Driver\\ResultInterface::getQueryResult) in src/Result.php on line 17\n```\n\nThis happens before any test runs, so `composer update` followed by `composer test` fails outright.\n\nThe added signature is:\n\n```php\npublic function getQueryResult(?ResultSetInterface $resultPrototype = null): ResultSetInterface;\n```\n\nIt replaces the clone/initialize logic that previously lived in `Adapter`.\n\n## Proposed change\n\nImplement the method on `Pgsql\\Result`, following `Adapter\\Driver\\Pdo\\Result` upstream:\n\n```php\n#[Override]\npublic function getQueryResult(?ResultSetInterface $resultPrototype = null): ResultSetInterface\n{\n if (! $this->isQueryResult()) {\n throw new Exception\\RuntimeException(\n 'Cannot produce a query result set from a result that is not a query result;'\n . ' check isQueryResult() first',\n );\n }\n\n $resultPrototype ??= new ResultSet();\n $resultSet = clone $resultPrototype;\n $resultSet->initialize($this);\n\n return $resultSet;\n}\n```\n\n`isQueryResult()` already exists here as `pg_num_fields($this->resource) > 0`, so the guard works as-is. Needs coverage for both branches.\n\n## Notes\n\n#11 pins `composer.lock` to the older `php-db/phpdb` reference (`81844a5`) to avoid the fatal, which is a stopgap: the `latest` legs of the new matrix resolve `0.6.x-dev` fresh and will fail, and the lock cannot move forward until this is fixed.\n\n`phpdb-mysql` has no `getQueryResult()` either and its lock is pinned to an older reference again (`e037464`), so the same break is likely waiting there.\n","author":{"url":"https://github.com/simon-mundy","@type":"Person","name":"simon-mundy"},"datePublished":"2026-08-24T05:15:38Z","url":"https://github.com/php-db/phpdb-pgsql/issues/12"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5f1814e6-0401-a260-0627-54fc5fce212d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8CB2:340182:BEC34:10D38B:6AFD6AFB |
| html-safe-nonce | 0266691ceed738554b7f1b6b230f30c8e0cfbcd38d834a4ab85b6ba41a33087d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0IyOjM0MDE4MjpCRUMzNDoxMEQzOEI6NkFGRDZBRkIiLCJ2aXNpdG9yX2lkIjoiNzYyODA1Mzk3NzU0MzU2ODEyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 033b2bdfff426eb097324b38cc05b10f83ec41549e9b24ade3bbc20dd549270b |
| hovercard-subject-tag | issue:5231346359 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/php-db/phpdb-pgsql/12/issue_layout |
| twitter:image | https://opengraph.githubassets.com/00b8a9b4c2123977411df17cde068a6306df7ff3d954e99b9c37d94e1deb0fc8/php-db/phpdb-pgsql/issues/12 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/00b8a9b4c2123977411df17cde068a6306df7ff3d954e99b9c37d94e1deb0fc8/php-db/phpdb-pgsql/issues/12 |
| og:image:alt | Summary Pgsql\Result no longer satisfies PhpDb\Adapter\Driver\ResultInterface. php-db/phpdb#172 added getQueryResult() to the interface (commit 6a14886), and this package does not implement it, so ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | simon-mundy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9985ca2e21b59673104d4d830d4afeb946c67f248f273ab2e824c31c8db46e4a |
| turbo-cache-control | no-preview |
| go-import | github.com/php-db/phpdb-pgsql git https://github.com/php-db/phpdb-pgsql.git |
| octolytics-dimension-user_id | 219474457 |
| octolytics-dimension-user_login | php-db |
| octolytics-dimension-repository_id | 946781573 |
| octolytics-dimension-repository_nwo | php-db/phpdb-pgsql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 946781573 |
| octolytics-dimension-repository_network_root_nwo | php-db/phpdb-pgsql |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0db9e8d463c3f4540570e6ad3c501a06db9dc02a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width