// Remove bad _SQL_USE_SLAVE_ uses + normalize Db->executeS(), Db->execute() and Db->numRows() names

This commit is contained in:
rMalie
2011-10-10 12:18:56 +00:00
parent 149c814a45
commit 9510337b1d
280 changed files with 1971 additions and 1966 deletions
+3 -3
View File
@@ -213,7 +213,7 @@ class BackupCore
fwrite($fp, "\n".'SET NAMES \'utf8\';'."\n\n");
// Find all tables
$tables = Db::getInstance()->ExecuteS('SHOW TABLES');
$tables = Db::getInstance()->executeS('SHOW TABLES');
$found = 0;
foreach ($tables AS $table)
{
@@ -224,7 +224,7 @@ class BackupCore
continue;
// Export the table schema
$schema = Db::getInstance()->ExecuteS('SHOW CREATE TABLE `' . $table . '`');
$schema = Db::getInstance()->executeS('SHOW CREATE TABLE `' . $table . '`');
if (count($schema) != 1 || !isset($schema[0]['Table']) || !isset($schema[0]['Create Table']))
{
@@ -243,7 +243,7 @@ class BackupCore
if (!in_array($schema[0]['Table'], $ignore_insert_table))
{
$data = Db::getInstance()->ExecuteS('SELECT * FROM `' . $schema[0]['Table'] . '`', false);
$data = Db::getInstance()->executeS('SELECT * FROM `' . $schema[0]['Table'] . '`', false);
$sizeof = DB::getInstance()->NumRows();
$lines = explode("\n", $schema[0]['Create Table']);