From 969ecaae5847e0f0f8fe24533115cbb1efbff277 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Tue, 23 Apr 2024 16:50:20 +0200 Subject: [PATCH] Fix SybaseASEDialect column length resolution --- .../org/hibernate/community/dialect/SybaseLegacyDialect.java | 1 + .../src/main/java/org/hibernate/dialect/SybaseDialect.java | 1 + 2 files changed, 2 insertions(+) diff --git a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SybaseLegacyDialect.java b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SybaseLegacyDialect.java index 25e81009d1..ba3469b2d0 100644 --- a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SybaseLegacyDialect.java +++ b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SybaseLegacyDialect.java @@ -167,6 +167,7 @@ public class SybaseLegacyDialect extends AbstractTransactSQLDialect { int displaySize) { // Sybase jconnect driver reports the "actual" precision in the display size switch ( jdbcTypeCode ) { + case Types.CHAR: case Types.VARCHAR: case Types.REAL: case Types.DOUBLE: diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/SybaseDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/SybaseDialect.java index a6063b8583..d4e0b9836c 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/SybaseDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/SybaseDialect.java @@ -149,6 +149,7 @@ public class SybaseDialect extends AbstractTransactSQLDialect { int displaySize) { // Sybase jconnect driver reports the "actual" precision in the display size switch ( jdbcTypeCode ) { + case Types.CHAR: case Types.VARCHAR: case Types.REAL: case Types.DOUBLE: