diff --git a/system/database/drivers/mssql/mssql_driver.php b/system/database/drivers/mssql/mssql_driver.php
index d0e1092..ed6eadb 100644
--- a/system/database/drivers/mssql/mssql_driver.php
+++ b/system/database/drivers/mssql/mssql_driver.php
@@ -214,7 +214,7 @@
 	function escape_str($str)	

 	{

 		// Access the CI object

-		$CI->get_instance();

+		$CI =& get_instance();

 		

 		// Escape single quotes

 		return str_replace("'", "''", $CI->input->_remove_invisible_characters($str));

diff --git a/system/database/drivers/oci8/oci8_driver.php b/system/database/drivers/oci8/oci8_driver.php
index 82bc51b..96a6a13 100644
--- a/system/database/drivers/oci8/oci8_driver.php
+++ b/system/database/drivers/oci8/oci8_driver.php
@@ -368,7 +368,7 @@
 	function escape_str($str)

 	{

 		// Access the CI object

-		$CI->get_instance();

+		$CI =& get_instance();

 

 		return $CI->_remove_invisible_characters($str);

 	}

diff --git a/system/database/drivers/odbc/odbc_driver.php b/system/database/drivers/odbc/odbc_driver.php
index 985c975..2992880 100644
--- a/system/database/drivers/odbc/odbc_driver.php
+++ b/system/database/drivers/odbc/odbc_driver.php
@@ -243,7 +243,7 @@
 	function escape_str($str)	

 	{

 		// Access the CI object

-		$CI->get_instance();

+		$CI =& get_instance();

 

 		// ODBC doesn't require escaping

 		return $CI->_remove_invisible_characters($str);