summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2022-01-08 11:39:18 +0100
committerDamien Regad <dregad@mantisbt.org>2022-01-08 11:40:15 +0100
commite8afdc9ded867453f98cc610cc6d47b1845fe20c (patch)
tree24ca4a1eaf711a9962bbb844ca34541be388d3f4
parent46bd8eccdec4258b9ed0422af44511dc16078028 (diff)
downloadadodb-e8afdc9ded867453f98cc610cc6d47b1845fe20c.tar.gz
adodb-e8afdc9ded867453f98cc610cc6d47b1845fe20c.tar.bz2
adodb-e8afdc9ded867453f98cc610cc6d47b1845fe20c.zip
No need to define $dsnType in ADODB_pdo anymore
It is declared in ADOConnection since e3fa991cab89ceb9724bf8c19676a450ee62a1f8. Convert ADOConnection::$dsnType comment to PHPDoc. Issue #789
-rw-r--r--adodb.inc.php6
-rw-r--r--drivers/adodb-pdo.inc.php1
2 files changed, 3 insertions, 4 deletions
diff --git a/adodb.inc.php b/adodb.inc.php
index 12836ed8..ad1da74c 100644
--- a/adodb.inc.php
+++ b/adodb.inc.php
@@ -460,9 +460,9 @@ if (!defined('_ADODB_LAYER')) {
var $databaseType = ''; /// RDBMS currently in use, eg. odbc, mysql, mssql
var $database = ''; /// Name of database to be used.
- /*
- * If the driver is PDO, then the dsnType is e.g. sqlsrv, otherwise empty
- */
+ /**
+ * @var string If the driver is PDO, then the dsnType is e.g. sqlsrv, otherwise empty
+ */
public $dsnType = '';
var $host = ''; /// The hostname of the database server
diff --git a/drivers/adodb-pdo.inc.php b/drivers/adodb-pdo.inc.php
index 3b4d1f54..e0e6c729 100644
--- a/drivers/adodb-pdo.inc.php
+++ b/drivers/adodb-pdo.inc.php
@@ -82,7 +82,6 @@ class ADODB_pdo extends ADOConnection {
var $_errormsg = false;
var $_errorno = false;
- var $dsnType = '';
var $stmt = false;
var $_driver;