Skip to content

Commit

Permalink
Update javadoc for SqlTypeName#allowsPrecScale method
Browse files Browse the repository at this point in the history
  • Loading branch information
zhujiang614 committed Nov 26, 2023
1 parent 5385de9 commit af42567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ default boolean shouldUseDoubleMultiplication(RelDataTypeFactory typeFactory,
* <li>Let d be the number of whole digits in the result</li>
* <li>Then the result type is a decimal with:
* <ul>
* <li>p = p1 + p2)</li>
* <li>p = p1 + p2</li>
* <li>s = s1 + s2</li>
* </ul>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public boolean allowsScale() {
* true</code>, because the VARCHAR type allows a precision parameter, as in
* <code>VARCHAR(10)</code>.</li>
* <li><code>Varchar.allowsPrecScale(true, true)</code> returns <code>
* true</code>, because the VARCHAR type does not allow a precision and a
* false</code>, because the VARCHAR type does not allow a precision and a
* scale parameter, as in <code>VARCHAR(10, 4)</code>.</li>
* <li><code>allowsPrecScale(false, true)</code> returns <code>false</code>
* for every type.</li>
Expand Down

0 comments on commit af42567

Please sign in to comment.