summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-07-05 14:42:14 +0200
committerAndrey Andreev <narf@bofh.bg>2012-07-05 14:42:14 +0200
commit77a5d94974f546fb5f1cb04cfca4dbdf54f1d46b (patch)
treefd3ac1cf0c3d7ea54fd69e38f19478754cd20047 /system/database/DB_driver.php
parent014a4d23c4805d5aa81b2feb0f9694611a372a9f (diff)
Add a default _count_string property
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index ebf828c4e..d5367b4d2 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -78,6 +78,13 @@ abstract class CI_DB_driver {
protected $_reserved_identifiers = array('*'); // Identifiers that should NOT be escaped
/**
+ * The syntax to count rows is slightly different across different
+ * database engines, so this string appears in each driver and is
+ * used for the count_all() and count_all_results() functions.
+ */
+ protected $_count_string = 'SELECT COUNT(*) AS ';
+
+ /**
* Constructor
*
* @param array