From 212c50f5d7d6762a1c138f7a4ede2d11ebe4530f Mon Sep 17 00:00:00 2001 From: Brett Meyer Date: Thu, 14 Feb 2013 18:42:42 -0500 Subject: [PATCH] HHH-8005 Sybase 15 - nullable column are not nullable (when created by SchemaExport) --- .../src/main/java/org/hibernate/dialect/SybaseDialect.java | 5 +++++ 1 file changed, 5 insertions(+) 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 4064b2347a..d7afe034ee 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/SybaseDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/SybaseDialect.java @@ -50,4 +50,9 @@ public class SybaseDialect extends AbstractTransactSQLDialect { protected SqlTypeDescriptor getSqlTypeDescriptorOverride(int sqlCode) { return sqlCode == Types.BLOB ? BlobTypeDescriptor.PRIMITIVE_ARRAY_BINDING : super.getSqlTypeDescriptorOverride( sqlCode ); } + + @Override + public String getNullColumnString() { + return "null"; + } }