Skip to content

Commit bd75fee

Browse files
committed
Type
1 parent 28ba6f3 commit bd75fee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/site/markdown/docs/conditions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ case String values to enable case-insensitive queries. There are extension point
203203
mapping if you so desire.
204204

205205
Starting with version 1.5.2, we made a change to the rendering rules for the "in" conditions. This was done to limit the
206-
danger of conditions failing to render and thus affecting more rows than expected. For the base conditions ("isIn",
206+
danger of conditions failing to render and thus affecting more rows than expected. For the base conditions ("isIn",
207207
"isNotIn", etc.), if the list of values is empty, then the condition will still render, but the resulting SQL will
208208
be invalid and will cause a runtime exception. We believe this is the safest outcome. For example, suppose
209209
a DELETE statement was coded as follows:
@@ -220,7 +220,7 @@ This statement will be rendered as follows:
220220
delete from foo where status = ? and id in ()
221221
```
222222

223-
This will cause a runtime error due to invalid SQL, but it eliminates the possibility of deleting ALLs rows with
223+
This will cause a runtime error due to invalid SQL, but it eliminates the possibility of deleting ALL rows with
224224
active status. If you want to allow the "in" condition to drop from the SQL if the list is empty, then use the
225225
"inWhenPresent" condition.
226226

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy