additional test with %li0

This commit is contained in:
Sergey Tsalkov
2014-10-27 01:49:53 +00:00
parent 29c8e42a09
commit 67b24c916d

View File

@@ -200,6 +200,11 @@ class BasicTest extends SimpleTest {
$this->assert(count($row) === 1); $this->assert(count($row) === 1);
$this->assert($row[0]['username'] === 'newguy'); $this->assert($row[0]['username'] === 'newguy');
$this->assert($row[0]['age'] === '172'); $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'); $true = DB::query("DELETE FROM accounts WHERE password=%s", 'blahblahblahblah');
$this->assert($true === true); $this->assert($true === true);