commit | 9341189a529e28007c7ff566aa5db91488ea7439 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Sat Apr 14 16:45:56 2018 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Sat Apr 14 16:47:21 2018 +0300 |
tree | b5a9d708d48a3666b3364b4e130a5651f11ad891 | |
parent | 641d4dd6590b0c9f55c38daf153d571479fc6459 [diff] [blame] |
Merge pull request #5464 from ytetsuro/fix/#5462/like-before-bug Fixed issue #5462 Query Builder LIKE BEFORE doesnt work
diff --git a/system/database/DB_query_builder.php b/system/database/DB_query_builder.php index 8bc6328..5c0528a 100644 --- a/system/database/DB_query_builder.php +++ b/system/database/DB_query_builder.php
@@ -970,7 +970,7 @@ $v = "'{$v}'"; break; case 'before': - $v = "%'{$v}'"; + $v = "'%{$v}'"; break; case 'after': $v = "'{$v}%'";