-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Reproduce dots in quted names #7031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 5.0.x
Are you sure you want to change the base?
Conversation
8a31939
to
d7ff279
Compare
The underlying issue was fixed here: 92dea81 Not sure if it makes sense to add the test case just to not accidentally break the behaviour again anyway I don't know why setting the FK on DB2 and Oracle DBs fails, happy for any insights how to fix |
public function testIntrospectTableWithDotInIndexNames(): void | ||
{ | ||
$table = Table::editor() | ||
->setQuotedName('test_user') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why setting the FK on DB2 and Oracle DBs fails, happy for any insights how to fix
You declare the table name here as quoted but reference it in the other table as unquoted:
->setUnquotedReferencedTableName('test_user') |
On Oracle and Db2, "test_user"
(quoted) remains test_user
, while test_user
(unquoted) becomes TEST_USER
. Hence the error message:
"DB2INST1.TEST_USER" is an undefined name
Unless you want to retain the original case of the name on all platforms, you should use unquoted names.
d7ff279
to
83144b1
Compare
Otherwise, an extra "not null" assertion is required before comparing the value returned by OptionallyNamedObject::getObjectName() with the expected one.
Summary
Provide test for dots in quoted idx names