summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source
diff options
context:
space:
mode:
authorMehdi Bounya <mehdibo@users.noreply.github.com>2017-09-16 11:55:39 +0200
committerGitHub <noreply@github.com>2017-09-16 11:55:39 +0200
commit94bac7ab05cedb75c46ce75c546a268015eabd2e (patch)
treea486e368d6e46e1304deb3dcd26c71141cd58f93 /user_guide_src/source
parent6607ca29fcf3da49ed562aefe4e3f8ceb91c32f1 (diff)
Fixed dbprefix()
$this->db->set_dbprefix('newprefix'); $this->db->dbprefix('tablename'); Would output newprefixtablename not newprefix_tablename
Diffstat (limited to 'user_guide_src/source')
-rw-r--r--user_guide_src/source/database/queries.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/user_guide_src/source/database/queries.rst b/user_guide_src/source/database/queries.rst
index f626f1e83..710ababb0 100644
--- a/user_guide_src/source/database/queries.rst
+++ b/user_guide_src/source/database/queries.rst
@@ -66,7 +66,7 @@ the following::
If for any reason you would like to change the prefix programatically
without needing to create a new connection, you can use this method::
- $this->db->set_dbprefix('newprefix');
+ $this->db->set_dbprefix('newprefix_');
$this->db->dbprefix('tablename'); // outputs newprefix_tablename