Notices: Declare properties in fetch_field()

This commit is contained in:
Jakub Vrana
2025-03-24 09:49:42 +01:00
parent c47590bb0d
commit b8eb0ad8f5
12 changed files with 19 additions and 23 deletions

View File

@@ -133,12 +133,9 @@ if (isset($_GET["pgsql"])) {
function fetch_field() {
$column = $this->offset++;
$return = new \stdClass;
if (function_exists('pg_field_table')) {
$return->orgtable = pg_field_table($this->result, $column);
}
$return->orgtable = pg_field_table($this->result, $column);
$return->name = pg_field_name($this->result, $column);
$return->orgname = $return->name;
$return->type = pg_field_type($this->result, $column);
$return->type = pg_field_type($this->result, $column); //! map to MySQL numbers
$return->charsetnr = ($return->type == "bytea" ? 63 : 0); // 63 - binary
return $return;
}