File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
hibernate-community-dialects/src/main/java/org/hibernate/community/dialect Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ protected void registerDefaultKeywords() {
112
112
registerKeyword ( "role" );
113
113
registerKeyword ( "account" );
114
114
registerKeyword ( "class" );
115
+ registerKeyword ( "title" );
115
116
}
116
117
117
118
@ Override
@@ -655,6 +656,14 @@ public boolean supportsRowValueConstructorSyntax() {
655
656
return false ;
656
657
}
657
658
659
+ /**
660
+ * Teradata uses the syntax DELETE FROM <tablename> ALL instead of TRUNCATE <tablename>
661
+ * @param tableName the name of the table
662
+ */
663
+ public String getTruncateTableStatement (String tableName ) {
664
+ return "delete from " + tableName + " all" ;
665
+ }
666
+
658
667
@ Override
659
668
public boolean supportsRowValueConstructorSyntaxInInList () {
660
669
return false ;
You can’t perform that action at this time.
0 commit comments