restore %ss to working, add unit test so it won't break again

This commit is contained in:
Sergey Tsalkov
2013-06-21 16:27:05 -07:00
parent 3741291f44
commit 740ca7bc67
2 changed files with 2 additions and 2 deletions

View File

@@ -256,7 +256,7 @@ class BasicTest extends SimpleTest {
$this->assert($rows[1]['password'] === 'somethingelse');
$this->assert($rows[1]['username'] === '2ofmany');
$nullrow = DB::queryOneRow("SELECT * FROM accounts WHERE username=%s", '3ofmany');
$nullrow = DB::queryOneRow("SELECT * FROM accounts WHERE username LIKE %ss", '3ofman');
$this->assert($nullrow['password'] === NULL);
$this->assert($nullrow['age'] === '15');
}