minor bugfix: don't assume that the query results for queryFirstRow() or queryFirstList() will be an array (can also be a bool)

This commit is contained in:
Sergey Tsalkov
2014-06-14 00:27:38 +00:00
parent 7c5c03c576
commit 37fd169be3
2 changed files with 3 additions and 3 deletions

View File

@@ -274,7 +274,7 @@ class BasicTest extends SimpleTest {
DB::insert('storedata', array(
'picture' => $smile,
));
DB::query("INSERT INTO storedata (picture) VALUES (%s)", $smile);
DB::queryOneRow("INSERT INTO storedata (picture) VALUES (%s)", $smile);
$getsmile = DB::queryFirstField("SELECT picture FROM storedata WHERE id=1");
$getsmile2 = DB::queryFirstField("SELECT picture FROM storedata WHERE id=2");