This package is a simple userspace driver for PDO that uses the tried and tested OCI8 functions instead of using the still experimental and not all that functionnal PDO_OCI library.
Please report any bugs you may find.
Use Oci8::PARAM_BLOB
and Oci8::PARAM_CLOB
constant in bindValue.
Yii::app()->db->createCommand("INSERT INTO table (data) VALUES (empty_blob()) returning data into :data")
->bindParam(':data', 'very very long string', Oci8::PARAM_BLOB)
->execute();
##Installation
Run php composer.phar require "intersvyaz/pdo-oci8: ~2.0.0"
or add as a requirement to composer.json:
{
"require": {
"intersvyaz/pdo-oci8": "~2.0.0"
}
}
And then run composer update
###Credits