// 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:
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user