Skip to content

Commit 0991136

Browse files
Improve wording on the whereJsonContains method and SQLite support (#9198)
* Update queries.md I find the wording "This feature [whereJsonContains] is not supported by SQLite database versions less than 3.39.0" misleading. This wording suggests that the "whereJsonContains" method can be used by merely using a compatible version of SQLite, which is not true; while SQLite does support JSON functions since version 3.39.0 (as already stated in the previous paragraph), the SQLite Grammar does not support the "whereJsonContains" clause regardless of the version of SQLite. * Update queries.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent f65845f commit 0991136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ Laravel also supports querying JSON column types on databases that provide suppo
491491
->where('preferences->dining->meal', 'salad')
492492
->get();
493493

494-
You may use `whereJsonContains` to query JSON arrays. This feature is not supported by SQLite database versions less than 3.39.0:
494+
You may use `whereJsonContains` to query JSON arrays. This method is not supported by SQLite:
495495

496496
$users = DB::table('users')
497497
->whereJsonContains('options->languages', 'en')

0 commit comments

Comments
 (0)