# patched codeigniter's oci8 driver to cater for codepot's usecasees.
# renamed user to user_account # changed some files to support oracle
This commit is contained in:
@ -149,12 +149,25 @@ class CI_DB_driver {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
// HYUNG-HWAN
|
||||
//return TRUE;
|
||||
// END HYUNG-HWAN
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// HYUNG-HWAN
|
||||
$this->db_post_initialize ();
|
||||
// END HYUNG-HWAN
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// HYUNG-HWAN
|
||||
function db_post_initialize ()
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
// END HYUNG-HWAN
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
@ -1363,4 +1376,4 @@ class CI_DB_driver {
|
||||
|
||||
|
||||
/* End of file DB_driver.php */
|
||||
/* Location: ./system/database/DB_driver.php */
|
||||
/* Location: ./system/database/DB_driver.php */
|
||||
|
||||
@ -139,6 +139,13 @@ class CI_DB_oci8_driver extends CI_DB {
|
||||
// @todo - add support if needed
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// HYUNG-HWAN
|
||||
function db_post_initialize ()
|
||||
{
|
||||
$this->query ("ALTER SESSION SET NLS_TIMESTAMP_FORMAT='YYYY-MM-DD HH24:MI:SS.FF'");
|
||||
}
|
||||
// END HYUNG-HWAN
|
||||
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
@ -777,4 +784,4 @@ class CI_DB_oci8_driver extends CI_DB {
|
||||
|
||||
|
||||
/* End of file oci8_driver.php */
|
||||
/* Location: ./system/database/drivers/oci8/oci8_driver.php */
|
||||
/* Location: ./system/database/drivers/oci8/oci8_driver.php */
|
||||
|
||||
@ -174,7 +174,22 @@ class CI_DB_oci8_result extends CI_DB_result {
|
||||
{
|
||||
$id = ($this->curs_id) ? $this->curs_id : $this->stmt_id;
|
||||
|
||||
return @oci_fetch_object($id);
|
||||
// BEGIN HYUNG-HWAN
|
||||
//return @oci_fetch_object($id);
|
||||
$x = @oci_fetch_object($id);
|
||||
|
||||
if (is_object($x))
|
||||
{
|
||||
foreach ($x as $k => $v)
|
||||
{
|
||||
if (is_object($v) && get_class($v) == 'OCI-Lob')
|
||||
{
|
||||
$x->$k = $v->load();
|
||||
}
|
||||
}
|
||||
}
|
||||
return $x;
|
||||
// END HYUNG-HWAN
|
||||
}
|
||||
|
||||
// If PHP 4 is being used we have to build our own result
|
||||
@ -246,4 +261,4 @@ class CI_DB_oci8_result extends CI_DB_result {
|
||||
|
||||
|
||||
/* End of file oci8_result.php */
|
||||
/* Location: ./system/database/drivers/oci8/oci8_result.php */
|
||||
/* Location: ./system/database/drivers/oci8/oci8_result.php */
|
||||
|
||||
Reference in New Issue
Block a user