From 976a5e1faf9df64b40ede8586c345def1454cf4e Mon Sep 17 00:00:00 2001 From: Michael Dick Date: Wed, 25 Jun 2008 15:46:44 +0000 Subject: [PATCH] OPENJPA-642 committing patch provided by Fay Wang git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@671585 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/openjpa/jdbc/sql/SybaseDictionary.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java index 636a8f5c4..272ee64ea 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SybaseDictionary.java @@ -131,6 +131,15 @@ public class SybaseDictionary "TRAN", "TRIGGER", "TRUNCATE", "TSEQUAL", "UNPARTITION", "USE", "USER_OPTION", "WAITFOR", "WHILE", "WRITETEXT", })); + + // Sybase does not support foreign key delete/update action NULL, DEFAULT, + // CASCADE + supportsNullDeleteAction = false; + supportsDefaultDeleteAction = false; + supportsCascadeDeleteAction = false; + supportsNullUpdateAction = false; + supportsDefaultUpdateAction = false; + supportsCascadeUpdateAction = false; } public int getJDBCType(int metaTypeCode, boolean lob) {