Fix diff when full connection string used. Clean up helper files

This commit is contained in:
Christopher Jones 2009-10-05 22:51:21 +00:00
parent f90c706a9a
commit 94dc8024d9
5 changed files with 21 additions and 31 deletions

View File

@ -1,12 +1,7 @@
<?php
if ($c) {
$ora_sql = "DROP TABLE
".$schema.$table_name."
";
$statement = OCIParse($c,$ora_sql);
OCIExecute($statement);
}
if ($c) {
$ora_sql = "DROP TABLE ".$schema.$table_name;
$statement = oci_parse($c,$ora_sql);
oci_execute($statement);
}
?>

View File

@ -1,12 +1,7 @@
<?php
if ($c) {
$ora_sql = "DROP TYPE
".$type_name."
";
$statement = OCIParse($c,$ora_sql);
OCIExecute($statement);
if ($c) {
$ora_sql = "DROP TYPE ".$type_name;
$statement = oci_parse($c,$ora_sql);
oci_execute($statement);
}
?>

View File

@ -139,12 +139,12 @@ bool(false)
bool(false)
Test 7
Warning: oci_connect(): ORA-12154: TNS:could not resolve the connect identifier specified in %s on line %d
Warning: oci_connect(): ORA-12154: %s in %s on line %d
array(4) {
[%u|b%"code"]=>
int(12154)
[%u|b%"message"]=>
%unicode|string%(65) "ORA-12154: %s"
%unicode|string%(%d) "ORA-12154: %s"
[%u|b%"offset"]=>
int(0)
[%u|b%"sqltext"]=>
@ -153,12 +153,12 @@ array(4) {
bool(false)
Test 8
Warning: oci_connect(): ORA-12154: TNS:could not resolve the connect identifier specified in %s on line %d
Warning: oci_connect(): ORA-12154: %s in %s on line %d
array(4) {
[%u|b%"code"]=>
int(12154)
[%u|b%"message"]=>
%unicode|string%(65) "ORA-12154: %s"
%unicode|string%(%d) "ORA-12154: %s"
[%u|b%"offset"]=>
int(0)
[%u|b%"sqltext"]=>

View File

@ -139,12 +139,12 @@ bool(false)
bool(false)
Test 7
Warning: oci_new_connect(): ORA-12154: TNS:could not resolve the connect identifier specified in %s on line %d
Warning: oci_new_connect(): ORA-12154: %s in %s on line %d
array(4) {
[%u|b%"code"]=>
int(12154)
[%u|b%"message"]=>
%unicode|string%(65) "ORA-12154: %s"
%unicode|string%(%d) "ORA-12154: %s"
[%u|b%"offset"]=>
int(0)
[%u|b%"sqltext"]=>
@ -153,12 +153,12 @@ array(4) {
bool(false)
Test 8
Warning: oci_new_connect(): ORA-12154: TNS:could not resolve the connect identifier specified in %s on line %d
Warning: oci_new_connect(): ORA-12154: %s in %s on line %d
array(4) {
[%u|b%"code"]=>
int(12154)
[%u|b%"message"]=>
%unicode|string%(65) "ORA-12154: %s"
%unicode|string%(%d) "ORA-12154: %s"
[%u|b%"offset"]=>
int(0)
[%u|b%"sqltext"]=>

View File

@ -139,12 +139,12 @@ bool(false)
bool(false)
Test 7
Warning: oci_pconnect(): ORA-12154: TNS:could not resolve the connect identifier specified in %s on line %d
Warning: oci_pconnect(): ORA-12154: %s in %s on line %d
array(4) {
[%u|b%"code"]=>
int(12154)
[%u|b%"message"]=>
%unicode|string%(65) "ORA-12154: %s"
%unicode|string%(%d) "ORA-12154: %s"
[%u|b%"offset"]=>
int(0)
[%u|b%"sqltext"]=>
@ -153,12 +153,12 @@ array(4) {
bool(false)
Test 8
Warning: oci_pconnect(): ORA-12154: TNS:could not resolve the connect identifier specified in %s on line %d
Warning: oci_pconnect(): ORA-12154: %s in %s on line %d
array(4) {
[%u|b%"code"]=>
int(12154)
[%u|b%"message"]=>
%unicode|string%(65) "ORA-12154: %s"
%unicode|string%(%d) "ORA-12154: %s"
[%u|b%"offset"]=>
int(0)
[%u|b%"sqltext"]=>