From 94bac7ab05cedb75c46ce75c546a268015eabd2e Mon Sep 17 00:00:00 2001 From: Mehdi Bounya Date: Sat, 16 Sep 2017 10:55:39 +0100 Subject: Fixed dbprefix() $this->db->set_dbprefix('newprefix'); $this->db->dbprefix('tablename'); Would output newprefixtablename not newprefix_tablename --- user_guide_src/source/database/queries.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-g4f1b