diff options
author | Mehdi Bounya <mehdibo@users.noreply.github.com> | 2017-09-16 11:55:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-16 11:55:39 +0200 |
commit | 94bac7ab05cedb75c46ce75c546a268015eabd2e (patch) | |
tree | a486e368d6e46e1304deb3dcd26c71141cd58f93 /user_guide_src | |
parent | 6607ca29fcf3da49ed562aefe4e3f8ceb91c32f1 (diff) |
Fixed dbprefix()
$this->db->set_dbprefix('newprefix');
$this->db->dbprefix('tablename');
Would output newprefixtablename not newprefix_tablename
Diffstat (limited to 'user_guide_src')
-rw-r--r-- | user_guide_src/source/database/queries.rst | 2 |
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 |