[jOOQ/jOOQ#12620] Document that the asterisk may lead to column order mismatches

This commit is contained in:
Lukas Eder 2021-11-10 09:56:59 +01:00
parent 15581a9958
commit d9e4b9a8aa
2 changed files with 14 additions and 0 deletions

View File

@ -343,6 +343,13 @@ extends
/**
* Create a qualified asterisk expression from this table
* (<code>table.*</code>) for use with <code>SELECT</code>.
* <p>
* When using an asterisk, jOOQ will let the database server define the
* order of columns, as well as which columns are included in the result
* set. If using jOOQ with generated code, this may conflict with the column
* set and its ordering as defined at code generation time, meaning columns
* may be in a different order, there may be fewer or more columns than
* expected. It is usually better to list columns explicitly.
*
* @see DSL#asterisk()
*/

View File

@ -29827,6 +29827,13 @@ public class DSL {
/**
* The asterisk (<code>*</code>) to be used in <code>SELECT</code> clauses.
* <p>
* When using an asterisk, jOOQ will let the database server define the
* order of columns, as well as which columns are included in the result
* set. If using jOOQ with generated code, this may conflict with the column
* set and its ordering as defined at code generation time, meaning columns
* may be in a different order, there may be fewer or more columns than
* expected. It is usually better to list columns explicitly.
*/
@NotNull
@Support