summaryrefslogtreecommitdiffstats
path: root/system/database/DB_query_builder.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2018-04-14 15:45:56 +0200
committerGitHub <noreply@github.com>2018-04-14 15:45:56 +0200
commitfb61fa32ff681eb6aba05d0966600bc8f896daac (patch)
tree5d8ea07367b15066a9992f498f55916f136f7b03 /system/database/DB_query_builder.php
parentc243df3af851fe90cd272f3958f7eb7bf76173b1 (diff)
parentdeba4d95c0704779a2059f7f06306a4848f7a0c0 (diff)
Merge pull request #5464 from ytetsuro/fix/#5462/like-before-bug
Fixed issue #5462 Query Builder LIKE BEFORE doesnt work
Diffstat (limited to 'system/database/DB_query_builder.php')
-rw-r--r--system/database/DB_query_builder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php
index 744c4970e..41148f63b 100644
--- a/system/database/DB_query_builder.php
+++ b/system/database/DB_query_builder.php
@@ -1042,7 +1042,7 @@ abstract class CI_DB_query_builder extends CI_DB_driver {
$v = "'{$v}'";
break;
case 'before':
- $v = "%'{$v}'";
+ $v = "'%{$v}'";
break;
case 'after':
$v = "'{$v}%'";