File tree Expand file tree Collapse file tree 1 file changed +22
-22
lines changed
APIJSONORM/src/main/java/apijson/orm Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments