Skip to content

Commit 84f894b

Browse files
committed
change version check for fts query
1 parent e7724a7 commit 84f894b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/com/alipay/oceanbase/rpc/ObGlobal.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ public static boolean isLsOpSupport() {
8787
}
8888

8989
public static boolean isFtsQuerySupport() {
90-
return OB_VERSION >= OB_VERSION_4_3_5_1;
90+
// tmp use, before merge to master, we should change 435 to 4351
91+
return OB_VERSION >= OB_VERSION_4_3_5_0;
9192
}
9293

9394
public static boolean isReturnOneResultSupport() {

src/main/java/com/alipay/oceanbase/rpc/table/ObTableClientQueryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public void checkArgumentBeforeExec() throws Exception {
133133
throw new IllegalArgumentException("table name is null");
134134
} else if (tableQuery.isFTSQuery()) {
135135
if (!ObGlobal.isFtsQuerySupport()) {
136-
throw new FeatureNotSupportedException("full text query is not supported in "+ObGlobal.OB_VERSION);
136+
throw new FeatureNotSupportedException("full text query is not supported in "+ObGlobal.obVsnString());
137137
}
138138
if (tableQuery.getIndexName() == null || tableQuery.getIndexName().isEmpty()
139139
|| tableQuery.getIndexName().equalsIgnoreCase("primary")) {

0 commit comments

Comments
 (0)