Minor formatting changes
This commit is contained in:
parent
642b17b28f
commit
d3d8e2e1af
@ -57,7 +57,7 @@ class firebird extends DB_PDO {
|
|||||||
public function truncate($table)
|
public function truncate($table)
|
||||||
{
|
{
|
||||||
// Firebird lacka a truncate command
|
// Firebird lacka a truncate command
|
||||||
$sql = 'DELETE FROM '.$table.'"';
|
$sql = 'DELETE FROM "'.$table.'"';
|
||||||
$this->query($sql);
|
$this->query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ SQL;
|
|||||||
*/
|
*/
|
||||||
public function load_database($db, $name)
|
public function load_database($db, $name)
|
||||||
{
|
{
|
||||||
$sql = "ATTACH DATABASE '{$db}' AS \"{$name}\"";
|
$sql = 'ATTACH DATABASE "'.$db.'" AS "'.$name.'"';
|
||||||
$this->query($sql);
|
$this->query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,11 @@ class FirebirdTest extends UnitTestCase {
|
|||||||
function TestCreateTable()
|
function TestCreateTable()
|
||||||
{
|
{
|
||||||
//Attempt to create the table
|
//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->db->query($sql);
|
||||||
|
|
||||||
//This test fails for an unknown reason, when clearly the table exists
|
//This test fails for an unknown reason, when clearly the table exists
|
||||||
|
Loading…
Reference in New Issue
Block a user