Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions user_guide_src/source/database/query_builder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ will be reset (by default it will be reset, just like when using ``$builder->get
.. literalinclude:: query_builder/006.php

The key thing to notice in the above example is that the second query did not
utilize ``$builder->from()`` and did not pass a table name into the first
parameter. The reason for this outcome is because the query has not been
executed using ``$builder->get()`` which resets values or reset directly
using ``$builder->resetQuery()``.
utilize ``limit(10, 20)`` but the generated SQL query has ``LIMIT 20, 10``.
The reason for this outcome is because the first parameter is set to ``false``.

$builder->getWhere()
--------------------
Expand Down Expand Up @@ -829,9 +827,7 @@ will be reset (by default it will be--just like ``$builder->insert()``):

.. literalinclude:: query_builder/080.php

The reason the second query worked is that the query has not been executed
using ``$builder->insert()`` which resets values or reset directly using
``$builder->resetQuery()``.
The reason the second query worked is that the first parameter is set to ``false``.

.. note:: This method doesn't work for batch inserts.

Expand Down