cvs: php4 /pear/DB oci8.php
| From: | Stig Bakken | Date: | Sun, 18 Feb 2001 16:24:00 +0000 |
| Subject: | cvs: php4 /pear/DB oci8.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4096@lists.php.net to get a copy of this message | ||
ssb Sun Feb 18 08:24:00 2001 EDT
Modified files:
/php4/pear/DB oci8.php
Log:
* use "hostspec" dsn parameter as SID if specified
Index: php4/pear/DB/oci8.php
diff -u php4/pear/DB/oci8.php:1.17 php4/pear/DB/oci8.php:1.18
--- php4/pear/DB/oci8.php:1.17 Fri Feb 16 09:14:40 2001
+++ php4/pear/DB/oci8.php Sun Feb 18 08:24:00 2001
@@ -83,10 +83,11 @@
$pw = $dsninfo['password'];
$hostspec = $dsninfo['hostspec'];
+ DB::assertExtension("oci8");
$connect_function = $persistent ? 'OCIPLogon' : 'OCILogon';
- if ($user && $pw && $hostspec) {
+ if ($hostspec) {
$conn = $connect_function($user,$pw,$hostspec);
- } elseif ($user && $pw) {
+ } elseif ($user || $pw) {
$conn = $connect_function($user,$pw);
} else {
$conn = false;
@@ -373,10 +374,10 @@
function autoCommit($onoff = false)
{
if (!$onoff) {
- $this->autoCommit=0;
+ $this->autoCommit = 0;
}
else {
- $this->autoCommit=1;
+ $this->autoCommit = 1;
}
return DB_OK;
}