diff options
Diffstat (limited to 'system/database/DB_active_rec.php')
-rw-r--r-- | system/database/DB_active_rec.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php index 903584200..b97fb11cd 100644 --- a/system/database/DB_active_rec.php +++ b/system/database/DB_active_rec.php @@ -779,7 +779,19 @@ class CI_DB_active_record extends CI_DB_driver { {
return $this->_having($key, $value, 'AND ');
}
-
+
+ // --------------------------------------------------------------------
+
+ /**
+ * orhaving() is an alias of or_having()
+ * this function is here for backwards compatibility, as
+ * orhaving() has been deprecated
+ */
+
+ function orhaving($key, $value = '')
+ {
+ return $this->or_havinggroup_by($key, $value = '');
+ }
// --------------------------------------------------------------------
/**
@@ -792,7 +804,7 @@ class CI_DB_active_record extends CI_DB_driver { * @param string
* @return object
*/
- function orhaving($key, $value = '')
+ function or_having($key, $value = '')
{
return $this->_having($key, $value, 'OR ');
}
|