diff options
author | ytetsuro <phper.0o0@gmail.com> | 2018-04-03 12:22:50 +0200 |
---|---|---|
committer | ytetsuro <phper.0o0@gmail.com> | 2018-04-03 12:22:50 +0200 |
commit | 5e36bdcd352c24e6312ad81cadf2ddbf041d11cb (patch) | |
tree | 624a2a885289e19f8697d26beea8955e212fcb72 /system/database/DB_query_builder.php | |
parent | c243df3af851fe90cd272f3958f7eb7bf76173b1 (diff) |
fix: It does not work properly when like is before
Diffstat (limited to 'system/database/DB_query_builder.php')
-rw-r--r-- | system/database/DB_query_builder.php | 2 |
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}%'"; |