diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-07-05 14:42:14 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-07-05 14:42:14 +0200 |
commit | 77a5d94974f546fb5f1cb04cfca4dbdf54f1d46b (patch) | |
tree | fd3ac1cf0c3d7ea54fd69e38f19478754cd20047 /system/database/DB_driver.php | |
parent | 014a4d23c4805d5aa81b2feb0f9694611a372a9f (diff) |
Add a default _count_string property
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r-- | system/database/DB_driver.php | 7 |
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 |