1
0
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:
Jakub Vrana
2025-03-05 14:25:09 +01:00
parent c10b614ee1
commit f468c095ae
5 changed files with 5 additions and 5 deletions

View File

@@ -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];
}

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);
}

View File

@@ -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;