DB Class Updates

This commit is contained in:
Timothy Warren 2012-02-13 14:29:00 -05:00
parent 1a4770dec2
commit 26e03c3962
5 changed files with 14 additions and 6 deletions

View File

@ -85,7 +85,9 @@ class firebird_manip extends db_manip{
*/
function delete_table($name)
{
return "DROP TABLE \"{$name}\"";
return <<<SQL
DROP TABLE "{$name}"
SQL;
}
}

View File

@ -30,7 +30,7 @@ class MySQL extends DB_PDO {
function __construct($dsn, $username=null, $password=null, $options=array())
{
$options = array_merge(array(
PDO::MYSQL_ATTR_FOUND_ROWS => true
),
$options);
@ -90,7 +90,7 @@ class MySQL extends DB_PDO {
*/
function num_rows()
{
// TODO: Implement
return isset($this->statement) ? $this->statement->rowCount() : FALSE;
}
}
//End of mysql.php

View File

@ -40,7 +40,9 @@
*/
function delete_table($name)
{
return "DROP TABLE `{$name}`";
return <<<SQL
DROP TABLE `{$name}`
SQL;
}
}
//End of mysql_manip.php

View File

@ -26,7 +26,9 @@ class pgSQL_manip extends db_manip {
function delete_table($name)
{
return 'DROP TABLE "'.$name.'"';
return <<<SQL
DROP TABLE "{$name}"
SQL;
}
}

View File

@ -82,7 +82,9 @@ class SQLite_manip extends db_manip {
*/
function delete_table($name)
{
return "DROP TABLE IF EXISTS \"{$name}\"";
return <<<SQL
DROP TABLE IF EXISTS "{$name}";
SQL;
}
/**