// Remove some other mysql_ in code

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7652 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-07-19 11:51:12 +00:00
parent fa2fc8b69d
commit fce17efbb8
5 changed files with 19 additions and 4 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ class BackupCore
foreach ($row AS $field => $value)
{
$tmp = "'" . mysql_real_escape_string($value) . "',";
$tmp = "'" . pSQL($value) . "',";
if($tmp != "'',")
$s .= $tmp;
else
+7
View File
@@ -243,6 +243,13 @@ abstract class DbCore
*/
abstract public function nextRow($result = false);
/**
* Get database version
*
* @return string
*/
abstract public function getVersion();
/**
* Alias of Db::getInstance()->ExecuteS
*
+8
View File
@@ -260,6 +260,14 @@ class MySQLCore extends Db
die(Tools::displayError((mysql_error())));
}
}
/**
* @see DbCore::getVersion()
*/
public function getVersion()
{
return mysql_get_server_info();
}
static public function tryToConnect($server, $user, $pwd, $db)
{