1
0
mirror of https://github.com/dg/dibi.git synced 2025-07-31 19:30:30 +02:00

OracleResult: LONG type is textual [Closes #342] (#343)

This commit is contained in:
Miloslav Hůla
2019-11-06 16:43:33 +01:00
committed by David Grudl
parent b5a66fdb26
commit f2927a1b08

View File

@@ -96,6 +96,7 @@ class OracleResult implements Dibi\ResultDriver
'name' => oci_field_name($this->resultSet, $i),
'table' => null,
'fullname' => oci_field_name($this->resultSet, $i),
'type' => $type === 'LONG' ? Dibi\Type::TEXT : null,
'nativetype' => $type === 'NUMBER' && oci_field_scale($this->resultSet, $i) === 0 ? 'INTEGER' : $type,
];
}