From bfa0312fefb6d06a2bd038165a181a9577f7f46a Mon Sep 17 00:00:00 2001 From: Jesse Denardo Date: Wed, 25 Apr 2018 11:13:29 -0400 Subject: [PATCH] [5.6] Add missing PostgreSQL operators (#23945) 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', ]; /**