From 7ca69c953216d2debcee13d9f7f0c41e7f023fa0 Mon Sep 17 00:00:00 2001 From: Florian Friedrich Date: Thu, 12 Jul 2018 12:21:18 +0200 Subject: [PATCH] Fix regexp operator --- Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift b/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift index 2f58f4c5..49e887cf 100644 --- a/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift +++ b/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift @@ -156,7 +156,7 @@ public enum PostgreSQLBinaryOperator: SQLBinaryOperator, Equatable { case ._like: return "LIKE" case ._glob: return "GLOB" case ._match: return "MATCH" - case ._regexp: return "REGEXP" + case ._regexp: return "~" case ._notLike: return "NOT LIKE" case ._notGlob: return "NOT GLOB" case ._notMatch: return "NOT MATCH"