18 $result = pg_fetch_assoc($this->result);
21 if ($this->byteaFields ===
false)
23 $this->byteaFields = [];
25 foreach (
$result as $fieldName => $_)
27 $fieldType = pg_field_type($this->result, $fieldNum);
28 if ($fieldType ===
'bytea')
30 $this->byteaFields[$fieldName] = $fieldType;
36 if ($this->byteaFields)
38 foreach ($this->byteaFields as $fieldName => $fieldType)
44 return array_change_key_case(
$result, CASE_UPPER);