Skip to content

Commit

Permalink
WIP Add support for "information_schema" in CREATE TABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
JanJakes committed Dec 10, 2024
1 parent c515605 commit b6e7832
Show file tree
Hide file tree
Showing 5 changed files with 1,370 additions and 48 deletions.
3 changes: 2 additions & 1 deletion tests/WP_SQLite_Driver_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

require_once __DIR__ . '/WP_SQLite_Translator_Tests.php';
require_once __DIR__ . '/../wp-includes/sqlite-ast/class-wp-sqlite-driver.php';
require_once __DIR__ . '/../wp-includes/sqlite-ast/class-wp-sqlite-information-schema-builder.php';
require_once __DIR__ . '/../wp-includes/sqlite-ast/class-wp-sqlite-expression.php';
require_once __DIR__ . '/../wp-includes/sqlite-ast/class-wp-sqlite-token-factory.php';
require_once __DIR__ . '/../wp-includes/sqlite-ast/class-wp-sqlite-token.php';
Expand Down Expand Up @@ -39,7 +40,7 @@ public static function setUpBeforeClass(): void {
public function setUp(): void {
$this->sqlite = new PDO( 'sqlite::memory:' );

$this->engine = new WP_SQLite_Driver( $this->sqlite );
$this->engine = new WP_SQLite_Driver( 'wp', $this->sqlite );
$this->engine->query(
"CREATE TABLE _options (
ID INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL,
Expand Down
Loading

0 comments on commit b6e7832

Please sign in to comment.