Removed a bunch of unused variables
This commit is contained in:
parent
3fdc4ca5e0
commit
6558c0f1f2
@ -57,7 +57,7 @@ class DoliDBMssql extends DoliDB
|
|||||||
*/
|
*/
|
||||||
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $langs;
|
||||||
|
|
||||||
$this->database_user=$user;
|
$this->database_user=$user;
|
||||||
$this->database_host=$host;
|
$this->database_host=$host;
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class DoliDBSqlite extends DoliDB
|
|||||||
*/
|
*/
|
||||||
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $conf;
|
||||||
|
|
||||||
// Note that having "static" property for "$forcecharset" and "$forcecollate" will make error here in strict mode, so they are not static
|
// Note that having "static" property for "$forcecharset" and "$forcecollate" will make error here in strict mode, so they are not static
|
||||||
if (! empty($conf->db->character_set)) $this->forcecharset=$conf->db->character_set;
|
if (! empty($conf->db->character_set)) $this->forcecharset=$conf->db->character_set;
|
||||||
@ -303,7 +303,7 @@ class DoliDBSqlite extends DoliDB
|
|||||||
*/
|
*/
|
||||||
function connect($host, $login, $passwd, $name, $port=0)
|
function connect($host, $login, $passwd, $name, $port=0)
|
||||||
{
|
{
|
||||||
global $conf,$main_data_dir;
|
global $main_data_dir;
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::connect name=".$name,LOG_DEBUG);
|
dol_syslog(get_class($this)."::connect name=".$name,LOG_DEBUG);
|
||||||
|
|
||||||
@ -379,9 +379,7 @@ class DoliDBSqlite extends DoliDB
|
|||||||
*/
|
*/
|
||||||
function query($query,$usesavepoint=0,$type='auto')
|
function query($query,$usesavepoint=0,$type='auto')
|
||||||
{
|
{
|
||||||
$errmsg='';
|
$ret=null;
|
||||||
|
|
||||||
$ret='';
|
|
||||||
$query = trim($query);
|
$query = trim($query);
|
||||||
$this->error = 0;
|
$this->error = 0;
|
||||||
|
|
||||||
|
|||||||
@ -323,7 +323,7 @@ class DoliDBSqlite3 extends DoliDB
|
|||||||
*/
|
*/
|
||||||
function connect($host, $login, $passwd, $name, $port=0)
|
function connect($host, $login, $passwd, $name, $port=0)
|
||||||
{
|
{
|
||||||
global $conf,$main_data_dir;
|
global $main_data_dir;
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::connect name=".$name,LOG_DEBUG);
|
dol_syslog(get_class($this)."::connect name=".$name,LOG_DEBUG);
|
||||||
|
|
||||||
@ -401,8 +401,6 @@ class DoliDBSqlite3 extends DoliDB
|
|||||||
*/
|
*/
|
||||||
function query($query,$usesavepoint=0,$type='auto')
|
function query($query,$usesavepoint=0,$type='auto')
|
||||||
{
|
{
|
||||||
$errmsg='';
|
|
||||||
|
|
||||||
$ret=null;
|
$ret=null;
|
||||||
$query = trim($query);
|
$query = trim($query);
|
||||||
$this->error = 0;
|
$this->error = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user