Skip to content

Commit ed43fbc

Browse files
committed
[HHH-19365]!appendDatetimeFormat
1 parent 8b1cc5a commit ed43fbc

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/GaussDBDialect.java

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,27 +1073,7 @@ public boolean supportsTemporalLiteralOffset() {
10731073

10741074
@Override
10751075
public void appendDatetimeFormat(SqlAppender appender, String format) {
1076-
appender.appendSql( datetimeFormat( format ).result() );
1077-
}
1078-
1079-
public Replacer datetimeFormat(String format) {
1080-
return OracleDialect.datetimeFormat( format, true, false )
1081-
.replace("SSSSSS", "US")
1082-
.replace("SSSSS", "US")
1083-
.replace("SSSS", "US")
1084-
.replace("SSS", "MS")
1085-
.replace("SS", "MS")
1086-
.replace("S", "MS")
1087-
//use ISO day in week, as per DateTimeFormatter
1088-
.replace("ee", "ID")
1089-
.replace("e", "fmID")
1090-
//TZR is TZ
1091-
.replace("zzz", "TZ")
1092-
.replace("zz", "TZ")
1093-
.replace("z", "TZ")
1094-
.replace("xxx", "OF")
1095-
.replace("xx", "OF")
1096-
.replace("x", "OF");
1076+
throw new UnsupportedOperationException( "GaussDB not support datetime format yet" );
10971077
}
10981078

10991079
@Override

hibernate-core/src/main/java/org/hibernate/dialect/identity/GaussDBIdentityColumnSupport.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
public class GaussDBIdentityColumnSupport extends IdentityColumnSupportImpl {
1313

1414
public static final GaussDBIdentityColumnSupport INSTANCE = new GaussDBIdentityColumnSupport();
15-
@Override
16-
public boolean supportsIdentityColumns() {
17-
return false;
18-
}
1915

2016
@Override
2117
public String getIdentitySelectString(String table, String column, int type) {

0 commit comments

Comments
 (0)