Skip to content

Commit

Permalink
Polishing javadoc of NamedParameterUtils.substituteNamedParameters()
Browse files Browse the repository at this point in the history
Document that empty list is guaranteed to be supported by the database, for example MySQL and PostgreSQL doesn't support `foo in ()`.
  • Loading branch information
quaff committed Mar 6, 2024
1 parent 19b5f11 commit 54fdb8f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ private static int skipCommentsAndQuotes(char[] statement, int position) {
* like: <br /><br />
* {@code select id, name, state from table where (name, age) in (('John', 35), ('Ann', 50))}
* <p>The parameter values passed in are used to determine the number of placeholders to
* be used for a select list. Select lists should be limited to 100 or fewer elements.
* A larger number of elements is not guaranteed to be supported by the database and
* be used for a select list. Select lists should be limited to 100 or fewer elements and not be empty,
* A larger number of or empty elements is not guaranteed to be supported by the database and
* is strictly vendor-dependent.
* @param parsedSql the parsed representation of the SQL statement
* @param paramSource the source for named parameters
Expand Down

0 comments on commit 54fdb8f

Please sign in to comment.