From 8ba6b6fbf749f68beb67232cb8e0705a00af7e57 Mon Sep 17 00:00:00 2001 From: Jesse Denardo Date: Thu, 19 Apr 2018 12:44:47 -0400 Subject: [PATCH] [5.6] Add missing PostgreSQL operators Adds the operators "not ilike", "is distinct from", and "is not distinct from" to the Postgres query grammar. Backwards compatible. https://www.postgresql.org/docs/10/static/functions-comparison.html#FUNCTIONS-COMPARISON-PRED-TABLE --- src/Illuminate/Database/Query/Grammars/PostgresGrammar.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Database/Query/Grammars/PostgresGrammar.php b/src/Illuminate/Database/Query/Grammars/PostgresGrammar.php index f5866b320a1e..12f168140bff 100755 --- a/src/Illuminate/Database/Query/Grammars/PostgresGrammar.php +++ b/src/Illuminate/Database/Query/Grammars/PostgresGrammar.php @@ -15,9 +15,10 @@ class PostgresGrammar extends Grammar */ protected $operators = [ '=', '<', '>', '<=', '>=', '<>', '!=', - 'like', 'not like', 'ilike', + 'like', 'not like', 'ilike', 'not ilike', '&', '|', '#', '<<', '>>', '>>=', '=<<', '&&', '@>', '<@', '?', '?|', '?&', '||', '-', '-', '#-', + 'is distinct from', 'is not distinct from', ]; /**