Skip to content

Commit 5132496

Browse files
abnegateclaude
andcommitted
fix(sqlite): disable JSON_OVERLAPS support
SQLite has no JSON_OVERLAPS function, so inheriting the MariaDB default (true) caused 'no such function' errors on CONTAINS_ANY/CONTAINS/NOT_CONTAINS queries against array attributes. Returning false makes the SQL builder fall through to the LIKE-based default branch, which works against the JSON-encoded array column values SQLite stores. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e44768f commit 5132496

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/Database/Adapter/SQLite.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,6 +1291,15 @@ public function getSupportForUpserts(): bool
12911291
return true;
12921292
}
12931293

1294+
/**
1295+
* SQLite has no JSON_OVERLAPS — fall back to the LIKE-based default
1296+
* inherited from MariaDB::getSQLCondition for CONTAINS queries on arrays.
1297+
*/
1298+
public function getSupportForJSONOverlaps(): bool
1299+
{
1300+
return false;
1301+
}
1302+
12941303
/**
12951304
* Is hostname supported?
12961305
*

0 commit comments

Comments
 (0)