mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
117 lines
3.0 KiB
PHP
117 lines
3.0 KiB
PHP
--TEST--
|
||
oci_lob_write()/erase()/read() with CLOBs
|
||
--SKIPIF--
|
||
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
|
||
--FILE--
|
||
<?php
|
||
|
||
require dirname(__FILE__).'/connect.inc';
|
||
require dirname(__FILE__).'/create_table.inc';
|
||
|
||
$ora_sql = "INSERT INTO
|
||
".$schema.$table_name." (Clob)
|
||
VALUES (empty_Clob())
|
||
RETURNING
|
||
clob
|
||
INTO :v_clob ";
|
||
|
||
$statement = oci_parse($c,$ora_sql);
|
||
$clob = oci_new_descriptor($c,OCI_D_LOB);
|
||
oci_bind_by_name($statement,":v_clob", $clob,-1,OCI_B_CLOB);
|
||
oci_execute($statement, OCI_DEFAULT);
|
||
|
||
var_dump($clob);
|
||
|
||
$str = " |