Lines Matching refs:data
23 "create table pdo_oci_stream_1_tab (id number, data clob)",
34 insert into pdo_oci_stream_1_tab (id,data) values (1, 'abcdefghijklmnopqrstuvwxyz');
35 insert into pdo_oci_stream_1_tab (id,data) values (2, lob1);
40 $s = $dbh->prepare("select data from pdo_oci_stream_1_tab where id = 1");
45 echo 'Read '.stream_get_contents($r['data'], 1, 1)."$\n"; // b
46 echo 'Read '.stream_get_contents($r['data'], 2, 1)."$\n"; // cd
47 echo 'Read '.stream_get_contents($r['data'], 2, 0)."$\n"; // ab
48 echo 'Read '.stream_get_contents($r['data'], 26, 0)."$\n"; // abcdefghijklmnopqrstuvwxyz
49 echo 'Read '.stream_get_contents($r['data'], 27, 0)."$\n"; // abcdefghijklmnopqrstuvwxyz
50 echo 'Read '.stream_get_contents($r['data'], 27, 1)."$\n"; // bcdefghijklmnopqrstuvwxyz
51 echo 'Read '.stream_get_contents($r['data'], 1, 20)."$\n"; // u
52 echo 'Read '.stream_get_contents($r['data'], 1, 25)."$\n"; // z
53 echo 'Read '.stream_get_contents($r['data'], 1, 26)."$\n"; // <blank>
54 echo 'Read '.stream_get_contents($r['data'], 1, 0)."$\n"; // a
58 $s = $dbh->prepare("select data from pdo_oci_stream_1_tab where id = 2");
62 echo 'Read '.stream_get_contents($r['data'], 5, 0)."\n"; // abcjj
63 echo 'Read '.stream_get_contents($r['data'], 5, 2)."\n"; // cjjjj
64 echo 'Read '.stream_get_contents($r['data'], 6, 1)."\n"; // bcjjjj
65 echo 'Read '.strlen(stream_get_contents($r['data'], -1,0))."\n"; // 30006
66 echo 'Read '.strlen(stream_get_contents($r['data'], 0,0))."\n"; // 0
67 echo 'Read '.strlen(stream_get_contents($r['data'], 0,1))."\n"; // 0
68 echo 'Read '.strlen(stream_get_contents($r['data'], 10,100))."\n"; // 10
69 echo 'Read '.stream_get_contents($r['data'], 6, 30000)."\n"; // jjjxyz
70 echo 'Read '.stream_get_contents($r['data'], 7, 30000)."\n"; // jjjxyz
71 echo 'Read '.strlen(stream_get_contents($r['data']))."\n"; // 0
72 echo 'Read '.strlen(stream_get_contents($r['data'], 0))."\n"; // 0
73 echo 'Read '.strlen(stream_get_contents($r['data'], -1))."\n"; // 0
74 echo 'Read '.stream_get_contents($r['data'], -1, 30000)."\n"; // jjjxyz