[#430] Add support for the Firebird database - fixed TRUNCATE statement

This commit is contained in:
Lukas Eder 2012-08-17 18:50:15 +02:00
parent ad41d00e92
commit 2956e11d6c
2 changed files with 2 additions and 0 deletions

View File

@ -813,6 +813,7 @@ public interface FactoryOperations extends Configuration {
* supported, it is simulated using an equivalent <code>DELETE</code>
* statement. This is particularly true for these dialects:
* <ul>
* <li> {@link SQLDialect#FIREBIRD}</li>
* <li> {@link SQLDialect#INGRES}</li>
* <li> {@link SQLDialect#SQLITE}</li>
* </ul>

View File

@ -66,6 +66,7 @@ class TruncateImpl<R extends Record> extends AbstractQuery implements Truncate<R
switch (context.getDialect()) {
// These dialects don't implement the TRUNCATE statement
case FIREBIRD:
case INGRES:
case SQLITE: {
context.sql(create(context).delete(table));