Skip to content
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

Enable SchemaManagerFunctionalTestCase::testQuotedIdentifiers() for more platforms #6766

Conversation

morozov
Copy link
Member

@morozov morozov commented Feb 4, 2025

In DBAL 5, all identifiers are quoted in SQL, regardless of whether they are declared as quoted or not. This enables running the tests on all almost all platforms. We can enable DB2 once we introspect all identifiers as quoted by default.

@morozov morozov force-pushed the enable-test-quoted-identifiers-for-all-platforms branch from 1df0509 to 1c843a0 Compare February 4, 2025 02:14
@@ -214,15 +214,15 @@ public function testNonSimpleAlterTableCreatedFromDDL(): void

$table1 = $schemaManager->introspectTable('nodes');
$table2 = clone $table1;
$table2->addIndex(['name'], 'idx_name');
$table2->addIndex(['name'], 'idx_node_name');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently, index names in SQLite are global, so I renamed the one here and in the other test which now also runs on SQLite.

@morozov morozov force-pushed the enable-test-quoted-identifiers-for-all-platforms branch from 1c843a0 to 996fb41 Compare February 4, 2025 02:26
@morozov morozov changed the title Enable SchemaManagerFunctionalTestCase::testQuotedIdentifiers() for all platforms Enable SchemaManagerFunctionalTestCase::testQuotedIdentifiers() for more platforms Feb 4, 2025
@morozov morozov marked this pull request as ready for review February 4, 2025 02:33
@morozov morozov added this to the 5.0.0 milestone Feb 4, 2025
@morozov morozov requested a review from greg0ire February 4, 2025 02:34
@morozov morozov merged commit c629755 into doctrine:5.0.x Feb 4, 2025
62 checks passed
@morozov morozov deleted the enable-test-quoted-identifiers-for-all-platforms branch February 4, 2025 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants