From e5ea2ead5f46b3304ddb59e4dbb9f3fd90f83ba0 Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Thu, 14 Jun 2012 11:05:44 +0200 Subject: [PATCH] Check for ^oci: instead of just ^oci. --- ykval-db-oci.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykval-db-oci.php b/ykval-db-oci.php index 349158c..7081fe3 100644 --- a/ykval-db-oci.php +++ b/ykval-db-oci.php @@ -27,7 +27,7 @@ class DbImpl extends Db $this->db_password=$db_password; $this->db_options=$db_options; - if(substr($db_dsn, 0, 3) == 'oci') { + if(substr($db_dsn, 0, 4) == 'oci:') { # "oci:" prefix needs to be removed before passing db_dsn to OCI $this->db_dsn = substr($this->db_dsn, 4); }