This commit is contained in:
parent
078e36d0ca
commit
ef64d85188
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>cn.lunadeer</groupId>
|
||||
<artifactId>Dominion</artifactId>
|
||||
<version>1.15.9-beta</version>
|
||||
<version>1.15.11-beta</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Dominion</name>
|
||||
|
@ -41,6 +41,9 @@ public class Database {
|
||||
}
|
||||
try {
|
||||
Statement stmt = conn.createStatement();
|
||||
if (sql.contains("SERIAL PRIMARY KEY") && Dominion.config.getDbType().equals("sqlite")) {
|
||||
sql = sql.replace("SERIAL PRIMARY KEY", "INTEGER PRIMARY KEY AUTOINCREMENT");
|
||||
}
|
||||
// if query with no result return null
|
||||
if (stmt.execute(sql)) {
|
||||
return stmt.getResultSet();
|
||||
|
Reference in New Issue
Block a user