From 67b24c916dd8dba429a2428462c556ff0fe71f3c Mon Sep 17 00:00:00 2001 From: Sergey Tsalkov Date: Mon, 27 Oct 2014 01:49:53 +0000 Subject: [PATCH] additional test with %li0 --- simpletest/BasicTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/simpletest/BasicTest.php b/simpletest/BasicTest.php index 281df5b..3c11076 100644 --- a/simpletest/BasicTest.php +++ b/simpletest/BasicTest.php @@ -200,6 +200,11 @@ class BasicTest extends SimpleTest { $this->assert(count($row) === 1); $this->assert($row[0]['username'] === 'newguy'); $this->assert($row[0]['age'] === '172'); + + $row = DB::query("SELECT * FROM accounts WHERE password IN %li AND password IN %li0 AND username=%s", array('blahblahblahblah'), 'newguy'); + $this->assert(count($row) === 1); + $this->assert($row[0]['username'] === 'newguy'); + $this->assert($row[0]['age'] === '172'); $true = DB::query("DELETE FROM accounts WHERE password=%s", 'blahblahblahblah'); $this->assert($true === true);