Skip to content

Commit 8b1cc5a

Browse files
SweetWuXiaoMeiliubao68
authored andcommitted
HHH-19365 - ignore gauss identity
1 parent 613f7ea commit 8b1cc5a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,6 @@ public void initializeFunctionRegistry(FunctionContributions functionContributio
585585
functionFactory.xmlpi();
586586
functionFactory.xmlquery_gaussdb();
587587
functionFactory.xmlexists();
588-
functionFactory.xmlagg();
589588

590589
functionFactory.makeDateTimeTimestamp();
591590
// Note that GaussDB doesn't support the OVER clause for ordered set-aggregate functions

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
*/
55
package org.hibernate.dialect.identity;
66

7-
import static org.hibernate.internal.util.StringHelper.unquote;
8-
97
/**
108
* @author liubao
119
*
@@ -21,11 +19,11 @@ public boolean supportsIdentityColumns() {
2119

2220
@Override
2321
public String getIdentitySelectString(String table, String column, int type) {
24-
return "select currval('" + unquote(table) + '_' + unquote(column) + "_seq')";
22+
return "";
2523
}
2624

2725
@Override
2826
public String getIdentityColumnString(int type) {
29-
return "generated by default as identity";
27+
return "";
3028
}
3129
}

hibernate-core/src/test/java/org/hibernate/orm/test/jpa/naturalid/MutableNaturalIdTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package org.hibernate.orm.test.jpa.naturalid;
66

77
import org.hibernate.community.dialect.AltibaseDialect;
8+
import org.hibernate.dialect.GaussDBDialect;
89
import org.hibernate.dialect.HANADialect;
910
import org.hibernate.dialect.OracleDialect;
1011

@@ -26,6 +27,8 @@
2627
reason = "Hana do not support identity key generation")
2728
@SkipForDialect(dialectClass = AltibaseDialect.class,
2829
reason = "Altibase do not support identity key generation")
30+
@SkipForDialect(dialectClass = GaussDBDialect.class,
31+
reason = "Gauss do not support identity key generation")
2932
public class MutableNaturalIdTest extends AbstractJPATest {
3033
@Override
3134
protected Class<?>[] getAnnotatedClasses() {

0 commit comments

Comments
 (0)