diff options
author | Andrey Andreev <narf@devilix.net> | 2013-11-12 14:36:53 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2013-11-12 14:36:53 +0100 |
commit | 81b21ed46b8cc5cdbe8431a7e30161b2cf80be7c (patch) | |
tree | fc3b8af618e7b96b498911e3e324158c8abcf7d5 /user_guide_src/source | |
parent | c761a206def7714d18623d46b05adc2bbeedce21 (diff) | |
parent | 17a0528c23c4d6cf95b03299fbfe2ff789b82249 (diff) |
Merge pull request #2719 from GDmac/develop
Fix #2406 query builder cache
Diffstat (limited to 'user_guide_src/source')
-rw-r--r-- | user_guide_src/source/database/query_builder.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide_src/source/database/query_builder.rst b/user_guide_src/source/database/query_builder.rst index 65609c1cb..480067407 100644 --- a/user_guide_src/source/database/query_builder.rst +++ b/user_guide_src/source/database/query_builder.rst @@ -68,7 +68,7 @@ Example:: // Produces string: SELECT * FROM mytable The second parameter enables you to set whether or not the query builder query -will be reset (by default it will be—just like `$this->db->get()`):: +will be reset (by default it will be reset, just like when using `$this->db->get()`):: echo $this->db->limit(10,20)->get_compiled_select('mytable', FALSE); // Produces string: SELECT * FROM mytable LIMIT 20, 10 @@ -76,7 +76,7 @@ will be reset (by default it will be—just like `$this->db->get()`):: echo $this->db->select('title, content, date')->get_compiled_select(); - // Produces string: SELECT title, content, date FROM mytable + // Produces string: SELECT title, content, date FROM mytable LIMIT 20, 10 The key thing to notice in the above example is that the second query did not utilize `$this->db->from()`_ and did not pass a table name into the first |