Skip to content

Commit 9697dbc

Browse files
committed
chore!: Change Oracle and H2 Oracle uintegerType and uintegerAutoincType from NUMBER(13) to NUMBER(10) to not take up more space than needed as UInt has a maximum of ten digits
1 parent d341309 commit 9697dbc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

documentation-website/Writerside/topics/Breaking-Changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
`UnsupportedByDialectException`. Previously, the setting would be ignored and SQL function generation would not include a `DISTINCT` clause.
66
* In Oracle and H2 Oracle, the `ubyte()` column now maps to data type `NUMBER(3)` instead of `NUMBER(4)`.
77
* In Oracle and H2 Oracle, the `ushort()` column now maps to data type `NUMBER(5)` instead of `NUMBER(6)`.
8+
* In Oracle and H2 Oracle, the `uinteger()` column now maps to data type `NUMBER(10)` instead of `NUMBER(13)`.
89

910
## 0.55.0
1011
* The `DeleteStatement` property `table` is now deprecated in favor of `targetsSet`, which holds a `ColumnSet` that may be a `Table` or `Join`.

exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/OracleDialect.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ internal object OracleDataTypeProvider : DataTypeProvider() {
2727
override fun ushortType(): String = "NUMBER(5)"
2828
override fun integerType(): String = "NUMBER(12)"
2929
override fun integerAutoincType(): String = "NUMBER(12)"
30-
override fun uintegerType(): String = "NUMBER(13)"
31-
override fun uintegerAutoincType(): String = "NUMBER(13)"
30+
override fun uintegerType(): String = "NUMBER(10)"
31+
override fun uintegerAutoincType(): String = "NUMBER(10)"
3232
override fun longType(): String = "NUMBER(19)"
3333
override fun longAutoincType(): String = "NUMBER(19)"
3434
override fun ulongType(): String = "NUMBER(20)"

0 commit comments

Comments
 (0)