SQLite Test, FIx syntax error

This commit is contained in:
Timothy Warren 2012-03-09 08:10:37 -05:00
parent c4f1fd3e0d
commit 6bd17a2150
2 changed files with 9 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class Query_Builder {
// Join the strings back together
for($i = 0, $c = count($safe_array); $i < $count; $i++)
{
if (is_array($safe_array[$i])
if (is_array($safe_array[$i]))
{
$safe_array[$i] = implode(' AS ', $safe_array[$i]);
}

View File

@ -151,6 +151,14 @@ SQL;
$this->assertIsA($query, 'PDOStatement');
}
function TestQBSelectGet()
{
$query = $this->qb->select('id, key as k, val')->get('create_test');
$this->assertIsA($query, 'PDOStatement');
}
function TestDeleteTable()
{