diff --git a/documentation-website/Writerside/topics/Breaking-Changes.md b/documentation-website/Writerside/topics/Breaking-Changes.md index 8845661361..b7464c4773 100644 --- a/documentation-website/Writerside/topics/Breaking-Changes.md +++ b/documentation-website/Writerside/topics/Breaking-Changes.md @@ -3,6 +3,9 @@ ## 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)`. +* In Oracle and H2 Oracle, the `ushort()` column now maps to data type `NUMBER(5)` instead of `NUMBER(6)`. +* In Oracle and H2 Oracle, the `uinteger()` column now maps to data type `NUMBER(10)` instead of `NUMBER(13)`. ## 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`. diff --git a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/OracleDialect.kt b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/OracleDialect.kt index 551ecf8698..f40c188c77 100644 --- a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/OracleDialect.kt +++ b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/OracleDialect.kt @@ -18,17 +18,17 @@ 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 { "NUMBER(5)" } - override fun ushortType(): String = "NUMBER(6)" + override fun ushortType(): String = "NUMBER(5)" override fun integerType(): String = "NUMBER(12)" override fun integerAutoincType(): String = "NUMBER(12)" - override fun uintegerType(): String = "NUMBER(13)" - override fun uintegerAutoincType(): String = "NUMBER(13)" + override fun uintegerType(): String = "NUMBER(10)" + override fun uintegerAutoincType(): String = "NUMBER(10)" override fun longType(): String = "NUMBER(19)" override fun longAutoincType(): String = "NUMBER(19)" override fun ulongType(): String = "NUMBER(20)"