Skip to content

Commit 84fa8f0

Browse files
author
obozdag
authored
docs: Some typo in database/query_builder.rst
Some typo in database/query_builder.rst
1 parent 9333516 commit 84fa8f0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

user_guide_src/source/database/query_builder.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ $query, which can be used to show the results:
8888

8989
.. literalinclude:: query_builder/004.php
9090

91-
Please visit the :doc:`getResult*() method <results>` page for a full
91+
Please visit the :doc:`getResult() method <results>` page for a full
9292
discussion regarding result generation.
9393

9494
$builder->getCompiledSelect()
@@ -101,14 +101,14 @@ Example:
101101

102102
.. literalinclude:: query_builder/005.php
103103

104-
The first parameter enables you to set whether or not the query builder query
104+
The parameter in the first query (false) enables you to set whether or not the query builder
105105
will be reset (by default it will be reset, just like when using ``$builder->get()``):
106106

107107
.. literalinclude:: query_builder/006.php
108108

109109
The key thing to notice in the above example is that the second query did not
110110
utilize ``limit(10, 20)`` but the generated SQL query has ``LIMIT 20, 10``.
111-
The reason for this outcome is because the first parameter is set to ``false``.
111+
The reason for this outcome is because the parameter in the first query is set to ``false``, ``limit(10, 20)`` remained in the second query.
112112

113113
$builder->getWhere()
114114
--------------------
@@ -169,7 +169,7 @@ $builder->selectMin()
169169
---------------------
170170

171171
Writes a **SELECT MIN(field)** portion for your query. As with
172-
``selectMax()``, You can optionally include a second parameter to rename
172+
``selectMax()``, you can optionally include a second parameter to rename
173173
the resulting field.
174174

175175
.. literalinclude:: query_builder/011.php
@@ -178,7 +178,7 @@ $builder->selectAvg()
178178
---------------------
179179

180180
Writes a **SELECT AVG(field)** portion for your query. As with
181-
``selectMax()``, You can optionally include a second parameter to rename
181+
``selectMax()``, you can optionally include a second parameter to rename
182182
the resulting field.
183183

184184
.. literalinclude:: query_builder/012.php
@@ -187,7 +187,7 @@ $builder->selectSum()
187187
---------------------
188188

189189
Writes a **SELECT SUM(field)** portion for your query. As with
190-
``selectMax()``, You can optionally include a second parameter to rename
190+
``selectMax()``, you can optionally include a second parameter to rename
191191
the resulting field.
192192

193193
.. literalinclude:: query_builder/013.php
@@ -196,7 +196,7 @@ $builder->selectCount()
196196
-----------------------
197197

198198
Writes a **SELECT COUNT(field)** portion for your query. As with
199-
``selectMax()``, You can optionally include a second parameter to rename
199+
``selectMax()``, you can optionally include a second parameter to rename
200200
the resulting field.
201201

202202
.. note:: This method is particularly helpful when used with ``groupBy()``. For

0 commit comments

Comments
 (0)