diff options
Diffstat (limited to 'includes/db')
-rw-r--r-- | includes/db/DatabaseOracle.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/db/DatabaseOracle.php b/includes/db/DatabaseOracle.php index fb2d4359..9009b328 100644 --- a/includes/db/DatabaseOracle.php +++ b/includes/db/DatabaseOracle.php @@ -1304,6 +1304,10 @@ class DatabaseOracle extends DatabaseBase { throw new DBUnexpectedError( $this, "Cannot create LOB descriptor: " . $e['message'] ); } + if ( is_object( $val ) ) { + $val = $val->getData(); + } + if ( $col_type == 'BLOB' ) { $lob[$col]->writeTemporary( $val ); oci_bind_by_name( $stmt, ":$col", $lob[$col], - 1, SQLT_BLOB ); |