From 5e36bdcd352c24e6312ad81cadf2ddbf041d11cb Mon Sep 17 00:00:00 2001 From: ytetsuro Date: Tue, 3 Apr 2018 19:22:50 +0900 Subject: fix: It does not work properly when like is before --- system/database/DB_query_builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}%'"; -- cgit v1.2.3-24-g4f1b