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) {