Skip to content

Commit

Permalink
chore!: Change Oracle and H2 Oracle ubyteType from NUMBER(4) to NUMBE…
Browse files Browse the repository at this point in the history
…R(3) to not take up more space than needed as UByte has a maximum of three digits
  • Loading branch information
joc-a committed Oct 8, 2024
1 parent 599b63a commit c239753
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 0.56.0
* If the `distinct` parameter of `groupConcat()` is set to `true`, when using Oracle or SQL Server, this will now fail early with an
`UnsupportedByDialectException`. Previously, the setting would be ignored and SQL function generation would not include a `DISTINCT` clause.
* In Oracle and H2 Oracle, the `ubyte()` column now maps to data type `NUMBER(3)` instead of `NUMBER(4)`.

## 0.55.0
* The `DeleteStatement` property `table` is now deprecated in favor of `targetsSet`, which holds a `ColumnSet` that may be a `Table` or `Join`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal object OracleDataTypeProvider : DataTypeProvider() {
} else {
"NUMBER(3)"
}
override fun ubyteType(): String = "NUMBER(4)"
override fun ubyteType(): String = "NUMBER(3)"
override fun shortType(): String = if (currentDialect.h2Mode == H2Dialect.H2CompatibilityMode.Oracle) {
"SMALLINT"
} else {
Expand Down

0 comments on commit c239753

Please sign in to comment.