Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve tests
  • Loading branch information
JanJakes committed Oct 15, 2025
commit f99a904ef695be42193ef54b35e52d71674ec4ec
10 changes: 10 additions & 0 deletions tests/WP_SQLite_Driver_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -9239,6 +9239,16 @@ function ( $name ) {
),
$result
);

// Ensure it works with table aliases.
$result = $this->assertQuery( 'SELECT s.schema_name FROM information_schema.schemata AS s' );
$this->assertEquals(
array(
(object) array( 'SCHEMA_NAME' => 'information_schema' ),
(object) array( 'SCHEMA_NAME' => 'wp_test_new' ),
),
$result
);
}

public function testDynamicDatabaseNameComplexScenario(): void {
Expand Down