mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Make root namespace explicit
This commit is contained in:
@@ -310,7 +310,7 @@ if (isset($_GET["mongo"])) {
|
||||
$val = (float) $val;
|
||||
$op = $match[1];
|
||||
} elseif (preg_match('~^\(date\)(.+)~', $op, $match)) {
|
||||
$dateTime = new DateTime($val);
|
||||
$dateTime = new \DateTime($val);
|
||||
$val = new \MongoDB\BSON\UTCDatetime($dateTime->getTimestamp() * 1000);
|
||||
$op = $match[1];
|
||||
}
|
||||
|
@@ -136,7 +136,7 @@ if (isset($_GET["mssql"])) {
|
||||
$this->_fields = sqlsrv_field_metadata($this->_result);
|
||||
}
|
||||
$field = $this->_fields[$this->_offset++];
|
||||
$return = new stdClass;
|
||||
$return = new \stdClass;
|
||||
$return->name = $field["Name"];
|
||||
$return->orgname = $field["Name"];
|
||||
$return->type = ($field["Type"] == 1 ? 254 : 0);
|
||||
|
@@ -107,7 +107,7 @@ if (isset($_GET["oracle"])) {
|
||||
|
||||
function fetch_field() {
|
||||
$column = $this->_offset++;
|
||||
$return = new stdClass;
|
||||
$return = new \stdClass;
|
||||
$return->name = oci_field_name($this->_result, $column);
|
||||
$return->orgname = $return->name;
|
||||
$return->type = oci_field_type($this->_result, $column);
|
||||
|
@@ -132,7 +132,7 @@ if (isset($_GET["pgsql"])) {
|
||||
|
||||
function fetch_field() {
|
||||
$column = $this->_offset++;
|
||||
$return = new stdClass;
|
||||
$return = new \stdClass;
|
||||
if (function_exists('pg_field_table')) {
|
||||
$return->orgtable = pg_field_table($this->_result, $column);
|
||||
}
|
||||
|
@@ -119,7 +119,7 @@ if (isset($_GET["clickhouse"])) {
|
||||
|
||||
function fetch_field() {
|
||||
$column = $this->_offset++;
|
||||
$return = new stdClass;
|
||||
$return = new \stdClass;
|
||||
if ($column < count($this->columns)) {
|
||||
$return->name = $this->meta[$column]['name'];
|
||||
$return->orgname = $return->name;
|
||||
|
Reference in New Issue
Block a user