Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
11 changes: 11 additions & 0 deletions tests/WP_SQLite_Driver_Metadata_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,7 @@ public function testInformationSchemaForeignKeys(): void {
$this->assertEquals(
array(
(object) array(
'Table' => 't2',
'Create Table' => implode(
"\n",
array(
Expand Down Expand Up @@ -1451,6 +1452,7 @@ public function testInformationSchemaInlineForeignKeys(): void {
$this->assertEquals(
array(
(object) array(
'Table' => 't2',
'Create Table' => implode(
"\n",
array(
Expand Down Expand Up @@ -1558,6 +1560,7 @@ public function testInformationSchemaForeignKeysWithMultipleColumns(): void {
$this->assertEquals(
array(
(object) array(
'Table' => 't2',
'Create Table' => implode(
"\n",
array(
Expand Down Expand Up @@ -1681,6 +1684,7 @@ public function testInformationSchemaAlterTableAddForeignKeys(): void {
$this->assertEquals(
array(
(object) array(
'Table' => 't2',
'Create Table' => implode(
"\n",
array(
Expand Down Expand Up @@ -1725,6 +1729,7 @@ public function testInformationSchemaAlterTableDropForeignKeys(): void {
$this->assertEquals(
array(
(object) array(
'Table' => 't2',
'Create Table' => implode(
"\n",
array(
Expand Down Expand Up @@ -1764,6 +1769,7 @@ public function testInformationSchemaAlterTableDropForeignKeys(): void {
$this->assertEquals(
array(
(object) array(
'Table' => 't2',
'Create Table' => implode(
"\n",
array(
Expand Down Expand Up @@ -1799,6 +1805,7 @@ public function testInformationSchemaAlterTableDropForeignKeys(): void {
$this->assertEquals(
array(
(object) array(
'Table' => 't2',
'Create Table' => implode(
"\n",
array(
Expand Down Expand Up @@ -1830,6 +1837,7 @@ public function testInformationSchemaAlterTableDropForeignKeys(): void {
$this->assertEquals(
array(
(object) array(
'Table' => 't2',
'Create Table' => implode(
"\n",
array(
Expand All @@ -1852,6 +1860,7 @@ public function testInformationSchemaAlterTableDropPrimaryKey(): void {
$this->assertEquals(
array(
(object) array(
'Table' => 't',
'Create Table' => implode(
"\n",
array(
Expand Down Expand Up @@ -1882,6 +1891,7 @@ public function testInformationSchemaAlterTableDropPrimaryKey(): void {
$this->assertEquals(
array(
(object) array(
'Table' => 't',
'Create Table' => implode(
"\n",
array(
Expand Down Expand Up @@ -1913,6 +1923,7 @@ public function testInformationSchemaAlterTableDropUniqueKey(): void {
$this->assertEquals(
array(
(object) array(
'Table' => 't',
'Create Table' => implode(
"\n",
array(
Expand Down
1 change: 1 addition & 0 deletions tests/WP_SQLite_Driver_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -9664,6 +9664,7 @@ public function testFullyQualifiedTableName(): void {
$this->assertEquals(
array(
(object) array(
'Table' => 't',
'Create Table' => implode(
"\n",
array(
Expand Down
1 change: 1 addition & 0 deletions wp-includes/sqlite-ast/class-wp-sqlite-driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2263,6 +2263,7 @@ private function execute_show_statement( WP_Parser_Node $node ): void {
$this->set_results_from_fetched_data(
array(
(object) array(
'Table' => $table_name,
'Create Table' => $sql,
),
)
Expand Down
Loading