Commit 71dfe484 by irul

Add get_compile_select() to DB Active Record

1 parent 667faf43
......@@ -59,7 +59,7 @@ class CI_DB_active_record extends CI_DB_driver {
var $ar_cache_having = array();
var $ar_cache_orderby = array();
var $ar_cache_set = array();
var $ar_no_escape = array();
var $ar_cache_no_escape = array();
......@@ -427,7 +427,7 @@ class CI_DB_active_record extends CI_DB_driver {
$v = ' '.$this->escape($v);
}
if ( ! $this->_has_operator($k))
{
$k .= ' = ';
......@@ -661,7 +661,7 @@ class CI_DB_active_record extends CI_DB_driver {
$prefix = (count($this->ar_like) == 0) ? '' : $type;
$v = $this->escape_like_str($v);
if ($side == 'none')
{
$like_statement = $prefix." $k $not LIKE '{$v}'";
......@@ -1664,6 +1664,18 @@ class CI_DB_active_record extends CI_DB_driver {
// --------------------------------------------------------------------
/**
* Public Compile the SELECT statement
*
* @return string
*/
public function get_compile_select($select_override = FALSE)
{
return $this->_compile_select($select_override);
}
// --------------------------------------------------------------------
/**
* Compile the SELECT statement
*
* Generates a query string based on which functions were used.
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!