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

@ -190,7 +190,7 @@ abstract class DB_PDO extends PDO {
* @return string * @return string
*/ */
abstract public function backup_structure(); abstract public function backup_structure();
/** /**
* Return an SQL file with the database data as insert statements * Return an SQL file with the database data as insert statements
* *

View File

@ -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);
} }

View File

@ -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);
} }

View File

@ -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