Skip to content

Commit c7070cf

Browse files
Correct bindNull example
1 parent 409b6ff commit c7070cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/oracle/r2dbc/impl/OracleStatementImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,10 @@ public Statement bindNull(int index, Class<?> type) {
316316
* If the specified {@code identifier} matches more than one parameter name,
317317
* then this method binds the SQL {@code NULL} value to all parameters
318318
* having a matching name. For instance, when {@code NULL} is bound to the
319-
* parameter named "x", the following SQL would return all names having a
320-
* birthday with {@code NULL} day and month values:
319+
* parameter named "x", the following SQL would create a birthday with
320+
* {@code NULL} values for month and day:
321321
* <pre>
322-
* SELECT name FROM birthday WHERE month=:x AND day=:x
322+
* INSERT INTO birthday (name, month, day) VALUES ('Plato', :x, :x)
323323
* </pre>
324324
* </p>
325325
* @throws IllegalArgumentException {@inheritDoc}

0 commit comments

Comments
 (0)