You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In fact here $tableColumnsByTable contains "users" while $indexColumnsByTable contains users (notice the missing quotes) which leads to the following lines returning an empty array:
Bug Report
Summary
On oracle, schema introspection fails to retrieve comments if the table name is a reserved keyword
Current behavior
Getting the comment on a table with a reserverd keyword returns
NULL
.Expected behavior
Getting the comment on a table with a reserverd keyword should return the comment.
How to reproduce
I did setup oracle / oci driver using docker. If you have a working oracle setup it should be more straghtforward.
In the dbal sources I created those files directly.
./compose.yaml
./Dockerfile
Then the issue is visible after running:
docker compose up
(optional, if you do not have a working oracle setup)docker compose exec php php index.php
Exploration results
Non-reserved keyword works
AbstractSchemaManager
The error seems to come from those calls:
dbal/src/Schema/AbstractSchemaManager.php
Lines 408 to 411 in 818eae9
In fact here
$tableColumnsByTable
contains"users"
while$indexColumnsByTable
containsusers
(notice the missing quotes) which leads to the following lines returning an empty array:dbal/src/Schema/AbstractSchemaManager.php
Line 427 in 818eae9
References
The text was updated successfully, but these errors were encountered: