diff options
author | Andrey Andreev <narf@devilix.net> | 2015-09-01 12:51:26 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-09-01 12:51:26 +0200 |
commit | 554b452845e9ec26e1cd348fda607cf00d2a5026 (patch) | |
tree | 5f04c79bbca3037282796d6f9e0209195f511989 /tests | |
parent | 20573bd472bdeaa831074e563f239585554ffaf5 (diff) |
Fix #4093
Diffstat (limited to 'tests')
-rw-r--r-- | tests/codeigniter/database/query_builder/where_test.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/codeigniter/database/query_builder/where_test.php b/tests/codeigniter/database/query_builder/where_test.php index 20b7a567c..46a7fa2eb 100644 --- a/tests/codeigniter/database/query_builder/where_test.php +++ b/tests/codeigniter/database/query_builder/where_test.php @@ -123,4 +123,12 @@ class Where_test extends CI_TestCase { $this->assertEquals('Musician', $jobs[1]['name']); } + // ------------------------------------------------------------------------ + + public function test_issue4093() + { + $input = 'bar and baz or qux'; + $sql = $this->db->where('foo', $input)->get_compiled_select('dummy'); + $this->assertEquals("'".$input."'", substr($sql, -20)); + } }
\ No newline at end of file |