@@ -401,23 +401,6 @@ public function testCreateTableWithPrimaryKeyAndAutoincrement(): void {
401401 );
402402 }
403403
404- // @TODO: IF NOT EXISTS
405- /*public function testCreateTableWithIfNotExists(): void {
406- $this->assertQuery(
407- 'CREATE TABLE IF NOT EXISTS "t" ( "id" INTEGER ) STRICT',
408- 'CREATE TABLE IF NOT EXISTS t (id INT)'
409- );
410-
411- $this->assertExecutedInformationSchemaQueries(
412- array(
413- 'INSERT INTO _wp_sqlite_mysql_information_schema_tables (table_schema, table_name, table_type, engine, row_format, table_collation)'
414- . " VALUES ('wp', 't', 'BASE TABLE', 'InnoDB', 'Dynamic', 'utf8mb4_general_ci')",
415- 'INSERT INTO _wp_sqlite_mysql_information_schema_columns (table_schema, table_name, column_name, ordinal_position, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, datetime_precision, character_set_name, collation_name, column_type, column_key, extra, privileges, column_comment, generation_expression, srs_id)'
416- . " VALUES ('wp', 't', 'id', 1, null, 'YES', 'int', null, null, 10, 0, null, null, null, 'int', '', '', 'select,insert,update,references', '', '', null)",
417- )
418- );
419- }*/
420-
421404 public function testCreateTableWithInlineUniqueIndexes (): void {
422405 $ this ->assertQuery (
423406 array (
@@ -496,19 +479,12 @@ public function testCreateTableWithStandaloneUniqueIndexes(): void {
496479 );
497480 }*/
498481
499- // TODO: IF NOT EXISTS
500- /*public function testCreateTemporaryTable(): void {
482+ public function testCreateTemporaryTable (): void {
501483 $ this ->assertQuery (
502484 'CREATE TEMPORARY TABLE `t` ( `id` INTEGER ) STRICT ' ,
503485 'CREATE TEMPORARY TABLE t (id INT) '
504486 );
505-
506- // With IF NOT EXISTS.
507- $this->assertQuery(
508- 'CREATE TEMPORARY TABLE IF NOT EXISTS `t` ( `id` INTEGER ) STRICT',
509- 'CREATE TEMPORARY TABLE IF NOT EXISTS t (id INT)'
510- );
511- }*/
487+ }
512488
513489 public function testDropTemporaryTable (): void {
514490 // Create a temporary table first so DROP doesn't fail.
0 commit comments