File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
symmetric-sqlexplorer/src/main/java/org/jumpmind/vaadin/ui/sqlexplorer Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 4242import org .apache .commons .lang3 .StringUtils ;
4343import org .apache .commons .lang3 .exception .ExceptionUtils ;
4444import org .jumpmind .db .platform .DatabaseNamesConstants ;
45+ import org .jumpmind .db .platform .mariadb .MariaDBDatabasePlatform ;
4546import org .jumpmind .db .sql .JdbcSqlTemplate ;
4647import org .jumpmind .db .sql .SqlScriptReader ;
4748import org .jumpmind .properties .TypedProperties ;
@@ -218,7 +219,8 @@ public void run() {
218219 }
219220 String lowercaseSql = sql .trim ().toLowerCase ();
220221 if (!lowercaseSql .startsWith ("delete" ) && !lowercaseSql .startsWith ("update" ) && !lowercaseSql .startsWith ("insert" )) {
221- if (db .getPlatform ().getName ().equals (DatabaseNamesConstants .MYSQL )) {
222+ if (db .getPlatform ().getName ().equals (DatabaseNamesConstants .MYSQL ) &&
223+ !(db .getPlatform () instanceof MariaDBDatabasePlatform )) {
222224 stmt .setFetchSize (Integer .MIN_VALUE );
223225 } else {
224226 stmt .setFetchSize (maxResultsSize < 100 ? maxResultsSize : 100 );
You can’t perform that action at this time.
0 commit comments