From b501269edebf71d48f0e97666f12595e3e605c47 Mon Sep 17 00:00:00 2001 From: Stefan Roehrich Date: Sat, 4 Sep 1999 10:25:23 +0000 Subject: [PATCH] Adapted OCI(N)Logon examples to work with new printout of resource ids in PHP4. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@12535 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/oci8.sgml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/oci8.sgml b/functions/oci8.sgml index 2f2fd56cc0..1a8a6b8830 100644 --- a/functions/oci8.sgml +++ b/functions/oci8.sgml @@ -238,7 +238,7 @@ $c2 = ocilogon("scott","tiger",$db); function create_table($conn) { $stmt = ociparse($conn,"create table scott.hallo (test -varchar2(32))"); +varchar2(64))"); ociexecute($stmt); echo $conn." created table\n\n"; } @@ -250,7 +250,7 @@ function drop_table($conn) } function insert_data($conn) -{ $stmt = ociparse($conn,"insert into scott.hallo values($conn || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))"); +{ $stmt = ociparse($conn,"insert into scott.hallo values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))"); ociexecute($stmt,OCI_DEFAULT); echo $conn." inserted hallo\n\n"; } @@ -389,7 +389,7 @@ $c2 = ocinlogon("scott","tiger",$db); function create_table($conn) { $stmt = ociparse($conn,"create table scott.hallo (test -varchar2(32))"); +varchar2(64))"); ociexecute($stmt); echo $conn." created table\n\n"; } @@ -401,7 +401,7 @@ function drop_table($conn) } function insert_data($conn) -{ $stmt = ociparse($conn,"insert into scott.hallo values($conn || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))"); +{ $stmt = ociparse($conn,"insert into scott.hallo values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))"); ociexecute($stmt,OCI_DEFAULT); echo $conn." inserted hallo\n\n"; }