From ea135f2ee135a438df91c7ba425578e2348fa534 Mon Sep 17 00:00:00 2001 From: JiamingL Date: Fri, 1 Dec 2017 16:55:03 +0100 Subject: [PATCH] Minor fixes of case of empty string value. --- CHANGELOG.md | 3 +++ src/main/php/Gomoob/Filter/Sql/SqlFilterConverter.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 609f20e..c4e99f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.1.3] - 2017-12-01 +* Minor fixes of case of empty string value. + ## [1.1.2] - 2017-11-30 * Minor fixes of README.md. diff --git a/src/main/php/Gomoob/Filter/Sql/SqlFilterConverter.php b/src/main/php/Gomoob/Filter/Sql/SqlFilterConverter.php index 3bd435d..55d0355 100644 --- a/src/main/php/Gomoob/Filter/Sql/SqlFilterConverter.php +++ b/src/main/php/Gomoob/Filter/Sql/SqlFilterConverter.php @@ -578,7 +578,7 @@ private function transformSimpleFilter( /* string */ $value, /* array */ $context ) /* : array */ { - $result = ['', []]; + $result = [$key . " = ''", []]; try { // Creates a tokenizer to tokenize the filter value