@@ -6717,6 +6717,14 @@ public function testForeignKeyOnDeleteSetDefault(): void {
67176717 }
67186718
67196719 public function testUpdateWithJoinedTables (): void {
6720+ $ sqlite_version = $ this ->engine ->get_sqlite_version ();
6721+ if ( version_compare ( $ sqlite_version , '3.33.0 ' , '< ' ) ) {
6722+ $ this ->markTestSkipped (
6723+ sprintf ( "SQLite version %s doesn't support UPDATE with FROM clause. " , $ sqlite_version )
6724+ );
6725+ return ;
6726+ }
6727+
67206728 $ this ->assertQuery ( 'CREATE TABLE t1 (id INT, comment TEXT) ' );
67216729 $ this ->assertQuery ( 'CREATE TABLE t2 (id INT, name TEXT) ' );
67226730 $ this ->assertQuery ( 'CREATE TABLE t3 (id INT, name TEXT) ' );
@@ -6790,6 +6798,14 @@ public function testUpdateWithJoinedTables(): void {
67906798 }
67916799
67926800 public function testUpdateWithJoinedTablesInNonStrictMode (): void {
6801+ $ sqlite_version = $ this ->engine ->get_sqlite_version ();
6802+ if ( version_compare ( $ sqlite_version , '3.33.0 ' , '< ' ) ) {
6803+ $ this ->markTestSkipped (
6804+ sprintf ( "SQLite version %s doesn't support UPDATE with FROM clause. " , $ sqlite_version )
6805+ );
6806+ return ;
6807+ }
6808+
67936809 $ this ->assertQuery ( "SET SESSION sql_mode = '' " );
67946810 $ this ->assertQuery ( 'CREATE TABLE t1 (id INT, comment TEXT) ' );
67956811 $ this ->assertQuery ( 'CREATE TABLE t2 (id INT, name TEXT) ' );
@@ -6864,6 +6880,14 @@ public function testUpdateWithJoinedTablesInNonStrictMode(): void {
68646880 }
68656881
68666882 public function testUpdateWithJoinComplexQuery (): void {
6883+ $ sqlite_version = $ this ->engine ->get_sqlite_version ();
6884+ if ( version_compare ( $ sqlite_version , '3.33.0 ' , '< ' ) ) {
6885+ $ this ->markTestSkipped (
6886+ sprintf ( "SQLite version %s doesn't support UPDATE with FROM clause. " , $ sqlite_version )
6887+ );
6888+ return ;
6889+ }
6890+
68676891 $ this ->assertQuery ( "SET SESSION sql_mode = '' " );
68686892
68696893 $ default_date = '0000-00-00 00:00:00 ' ;
0 commit comments