Skip to content

Commit 7e9916a

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 2cfb936 commit 7e9916a

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
@@ -6,6 +6,7 @@
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)`.
88
* In Oracle and H2 Oracle, the `integer()` column now maps to data type `NUMBER(10)` and `INTEGER` respectively, instead of `NUMBER(12)`.
9+
* In Oracle and H2 Oracle, the `uinteger()` column now maps to data type `NUMBER(10)` instead of `NUMBER(13)`.
910

1011
## 0.55.0
1112
* 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
@@ -31,8 +31,8 @@ internal object OracleDataTypeProvider : DataTypeProvider() {
3131
"NUMBER(10)"
3232
}
3333
override fun integerAutoincType(): String = integerType()
34-
override fun uintegerType(): String = "NUMBER(13)"
35-
override fun uintegerAutoincType(): String = "NUMBER(13)"
34+
override fun uintegerType(): String = "NUMBER(10)"
35+
override fun uintegerAutoincType(): String = "NUMBER(10)"
3636
override fun longType(): String = "NUMBER(19)"
3737
override fun longAutoincType(): String = "NUMBER(19)"
3838
override fun ulongType(): String = "NUMBER(20)"

0 commit comments

Comments
 (0)