35 $row = @pg_fetch_object( $this->result );
37 if ( is_object( $row ) ) {
38 $numFields = pg_num_fields( $this->result );
39 for ( $i = 0; $i < $numFields; $i++ ) {
40 if ( pg_field_type( $this->result, $i ) ===
'bool' ) {
41 $name = pg_field_name( $this->result, $i );
42 $row->$name = $this->convertBoolean( $row->$name );
51 $row = @pg_fetch_array( $this->result );
53 if ( is_array( $row ) ) {
54 $numFields = pg_num_fields( $this->result );
55 for ( $i = 0; $i < $numFields; $i++ ) {
56 if ( pg_field_type( $this->result, $i ) ===
'bool' ) {
57 $name = pg_field_name( $this->result, $i );
58 $row[$i] = $this->convertBoolean( $row[$i] );
59 $row[$name] = $this->convertBoolean( $row[$name] );