[jOOQ/jOOQ#9223] Support MICROSECOND and WEEK for MySQL and MemSQL

This commit is contained in:
Knut Wannheden 2019-09-17 11:31:50 +02:00
parent 1bc29aec2e
commit 37aed04685
2 changed files with 8 additions and 8 deletions

View File

@ -119,7 +119,7 @@ public enum DatePart {
/**
* The microsecond.
*/
@Support({ H2, HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, MYSQL, POSTGRES })
MICROSECOND("microsecond"),
/**
@ -163,7 +163,7 @@ public enum DatePart {
/**
* The week of the year.
*/
@Support({ H2, HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, MYSQL, POSTGRES })
WEEK("week"),
/**

View File

@ -15412,7 +15412,7 @@ public class DSL {
* This is the same as calling {@link #extract(java.util.Date, DatePart)}
* with {@link DatePart#WEEK}
*/
@Support({ H2, HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, MYSQL, POSTGRES })
public static Field<Integer> week(java.util.Date value) {
return extract(value, DatePart.WEEK);
}
@ -15425,7 +15425,7 @@ public class DSL {
* This is the same as calling {@link #extract(Temporal, DatePart)}
* with {@link DatePart#WEEK}
*/
@Support({ H2, HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, MYSQL, POSTGRES })
public static Field<Integer> week(Temporal value) {
return extract(value, DatePart.WEEK);
}
@ -15438,7 +15438,7 @@ public class DSL {
* This is the same as calling {@link #extract(Field, DatePart)}
* with {@link DatePart#WEEK}
*/
@Support({ H2, HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, MYSQL, POSTGRES })
public static Field<Integer> week(Field<?> field) {
return extract(field, DatePart.WEEK);
}
@ -15745,7 +15745,7 @@ public class DSL {
* This is the same as calling {@link #extract(java.util.Date, DatePart)}
* with {@link DatePart#MICROSECOND}
*/
@Support({ H2, HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, MYSQL, POSTGRES })
public static Field<Integer> microsecond(java.util.Date value) {
return extract(value, DatePart.MICROSECOND);
}
@ -15758,7 +15758,7 @@ public class DSL {
* This is the same as calling {@link #extract(Temporal, DatePart)}
* with {@link DatePart#MICROSECOND}
*/
@Support({ H2, HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, MYSQL, POSTGRES })
public static Field<Integer> microsecond(Temporal value) {
return extract(value, DatePart.MICROSECOND);
}
@ -15771,7 +15771,7 @@ public class DSL {
* This is the same as calling {@link #extract(Field, DatePart)}
* with {@link DatePart#MICROSECOND}
*/
@Support({ H2, HSQLDB, POSTGRES })
@Support({ H2, HSQLDB, MYSQL, POSTGRES })
public static Field<Integer> microsecond(Field<?> field) {
return extract(field, DatePart.MICROSECOND);
}