[#4176] Wrong @Support value for SQLite which doesn't support DEFAULT in INSERT or UPDATE statements
This commit is contained in:
parent
016928311d
commit
ae9e07a8ed
@ -5311,7 +5311,7 @@ public class DSL {
|
||||
* <code>DEFAULT</code> value. In that case, use
|
||||
* {@link #defaultValue(Class)} or {@link #defaultValue(DataType)} instead.
|
||||
*/
|
||||
@Support({ CUBRID, DERBY, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
|
||||
@Support({ CUBRID, DERBY, H2, HSQLDB, MARIADB, MYSQL, POSTGRES })
|
||||
public static Field<Object> defaultValue() {
|
||||
return defaultValue(Object.class);
|
||||
}
|
||||
@ -5320,7 +5320,7 @@ public class DSL {
|
||||
* Create a <code>DEFAULT</code> keyword for use with <code>INSERT</code>,
|
||||
* <code>UPDATE</code>, or <code>MERGE</code> statements.
|
||||
*/
|
||||
@Support({ CUBRID, DERBY, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
|
||||
@Support({ CUBRID, DERBY, H2, HSQLDB, MARIADB, MYSQL, POSTGRES })
|
||||
public static <T> Field<T> defaultValue(Class<T> type) {
|
||||
return defaultValue(getDataType(type));
|
||||
}
|
||||
@ -5329,7 +5329,7 @@ public class DSL {
|
||||
* Create a <code>DEFAULT</code> keyword for use with <code>INSERT</code>,
|
||||
* <code>UPDATE</code>, or <code>MERGE</code> statements.
|
||||
*/
|
||||
@Support({ CUBRID, DERBY, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
|
||||
@Support({ CUBRID, DERBY, H2, HSQLDB, MARIADB, MYSQL, POSTGRES })
|
||||
public static <T> Field<T> defaultValue(DataType<T> type) {
|
||||
return new SQLField<T>(type, keyword("default"));
|
||||
}
|
||||
@ -5338,7 +5338,7 @@ public class DSL {
|
||||
* Create a <code>DEFAULT</code> keyword for use with <code>INSERT</code>,
|
||||
* <code>UPDATE</code>, or <code>MERGE</code> statements.
|
||||
*/
|
||||
@Support({ CUBRID, DERBY, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
|
||||
@Support({ CUBRID, DERBY, H2, HSQLDB, MARIADB, MYSQL, POSTGRES })
|
||||
public static <T> Field<T> defaultValue(Field<T> field) {
|
||||
return new SQLField<T>(field.getDataType(), keyword("default"));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user