From c1411a02e57f3d93da410e3f55b02b50628cf292 Mon Sep 17 00:00:00 2001 From: steve Date: Thu, 19 Aug 2021 15:15:10 +0100 Subject: [PATCH] Mode MySQL --- src/org/minima/utils/SQLHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/minima/utils/SQLHandler.java b/src/org/minima/utils/SQLHandler.java index 167f25817..14448e413 100644 --- a/src/org/minima/utils/SQLHandler.java +++ b/src/org/minima/utils/SQLHandler.java @@ -171,6 +171,7 @@ public SQLHandler(String zMiniDAppID,boolean zFullPath) throws SQLException, Cla mSQLConnection = getConnection(mDataBase,mMySQLUser,mMySQLPassword); }else { + String mode = ";MODE=MySQL"; if(!zFullPath) { //Calculate the Database file.. BackupManager backup = Main.getMainHandler().getBackupManager(); @@ -178,10 +179,10 @@ public SQLHandler(String zMiniDAppID,boolean zFullPath) throws SQLException, Cla String path = minidappdatabase.getAbsolutePath(); //Use H2 JDBC - mDataBase = "jdbc:h2:"+path; + mDataBase = "jdbc:h2:"+path+mode; }else { //Use H2 JDBC - mDataBase = "jdbc:h2:"+zMiniDAppID; + mDataBase = "jdbc:h2:"+zMiniDAppID+mode; } //Get the connection