Skip to content

Commit 9c73e74

Browse files
authored
Update SQLConfig.java
1 parent 74a7717 commit 9c73e74

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

APIJSONORM/src/main/java/apijson/orm/SQLConfig.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public interface SQLConfig {
4444
boolean isDameng();
4545
boolean isClickHouse();
4646
boolean isHive();
47-
boolean isTDengine();
47+
boolean isTDengine();
4848

4949

50-
//暂时只兼容以上几种
50+
//暂时只兼容以上几种
5151
// boolean isSQL();
5252
// boolean isTSQL();
5353
// boolean isPLSQL();
@@ -67,26 +67,26 @@ public interface SQLConfig {
6767
*/
6868
String getDBVersion();
6969

70-
@NotNull
71-
default int[] getDBVersionNums() {
72-
String dbVersion = StringUtil.getNoBlankString(getDBVersion());
73-
if (dbVersion.isEmpty()) {
74-
return new int[]{0};
75-
}
76-
77-
int index = dbVersion.indexOf("-");
78-
if (index > 0) {
79-
dbVersion = dbVersion.substring(0, index);
80-
}
81-
82-
String[] ss = dbVersion.split("[.]");
83-
int[] nums = new int[Math.max(1, ss.length)];
84-
for (int i = 0; i < ss.length; i++) {
85-
nums[i] = Integer.valueOf(ss[i]);
86-
}
87-
88-
return nums;
89-
}
70+
@NotNull
71+
default int[] getDBVersionNums() {
72+
String dbVersion = StringUtil.getNoBlankString(getDBVersion());
73+
if (dbVersion.isEmpty()) {
74+
return new int[]{0};
75+
}
76+
77+
int index = dbVersion.indexOf("-");
78+
if (index > 0) {
79+
dbVersion = dbVersion.substring(0, index);
80+
}
81+
82+
String[] ss = dbVersion.split("[.]");
83+
int[] nums = new int[Math.max(1, ss.length)];
84+
for (int i = 0; i < ss.length; i++) {
85+
nums[i] = Integer.valueOf(ss[i]);
86+
}
87+
88+
return nums;
89+
}
9090

9191
/**获取数据库地址
9292
* @return

0 commit comments

Comments
 (0)