equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Db |
16 * @package Zend_Db |
17 * @subpackage Adapter |
17 * @subpackage Adapter |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Oracle.php 21108 2010-02-19 22:36:08Z mikaelkael $ |
20 * @version $Id: Oracle.php 24593 2012-01-05 20:35:02Z matthew $ |
21 */ |
21 */ |
22 |
22 |
23 /** |
23 /** |
24 * @see Zend_Db_Adapter_Abstract |
24 * @see Zend_Db_Adapter_Abstract |
25 */ |
25 */ |
32 |
32 |
33 /** |
33 /** |
34 * @category Zend |
34 * @category Zend |
35 * @package Zend_Db |
35 * @package Zend_Db |
36 * @subpackage Adapter |
36 * @subpackage Adapter |
37 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
37 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
38 * @license http://framework.zend.com/license/new-bsd New BSD License |
38 * @license http://framework.zend.com/license/new-bsd New BSD License |
39 */ |
39 */ |
40 class Zend_Db_Adapter_Oracle extends Zend_Db_Adapter_Abstract |
40 class Zend_Db_Adapter_Oracle extends Zend_Db_Adapter_Abstract |
41 { |
41 { |
42 /** |
42 /** |
145 * @return boolean |
145 * @return boolean |
146 */ |
146 */ |
147 public function isConnected() |
147 public function isConnected() |
148 { |
148 { |
149 return ((bool) (is_resource($this->_connection) |
149 return ((bool) (is_resource($this->_connection) |
150 && get_resource_type($this->_connection) == 'oci8 connection')); |
150 && (get_resource_type($this->_connection) == 'oci8 connection' |
151 } |
151 || get_resource_type($this->_connection) == 'oci8 persistent connection'))); |
|
152 } |
152 |
153 |
153 /** |
154 /** |
154 * Force the connection to close. |
155 * Force the connection to close. |
155 * |
156 * |
156 * @return void |
157 * @return void |