Minor formatting changes

This commit is contained in:
Timothy Warren 2012-02-28 22:07:13 -05:00
parent 642b17b28f
commit d3d8e2e1af
4 changed files with 8 additions and 4 deletions

View File

@ -57,7 +57,7 @@ class firebird extends DB_PDO {
public function truncate($table)
{
// Firebird lacka a truncate command
$sql = 'DELETE FROM '.$table.'"';
$sql = 'DELETE FROM "'.$table.'"';
$this->query($sql);
}

View File

@ -106,7 +106,7 @@ SQL;
*/
public function load_database($db, $name)
{
$sql = "ATTACH DATABASE '{$db}' AS \"{$name}\"";
$sql = 'ATTACH DATABASE "'.$db.'" AS "'.$name.'"';
$this->query($sql);
}

View File

@ -72,7 +72,11 @@ class FirebirdTest extends UnitTestCase {
function TestCreateTable()
{
//Attempt to create the table
$sql = $this->db->manip->create_table('create_test', array('id' => 'SMALLINT', 'key' => 'VARCHAR(64)', 'val' => 'BLOB SUB_TYPE TEXT'));
$sql = $this->db->manip->create_table('create_test', array(
'id' => 'SMALLINT',
'key' => 'VARCHAR(64)',
'val' => 'BLOB SUB_TYPE TEXT'
));
$this->db->query($sql);
//This test fails for an unknown reason, when clearly the table exists