summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src
diff options
context:
space:
mode:
authorSimon Rettberg2023-05-22 17:59:08 +0200
committerSimon Rettberg2023-05-22 17:59:08 +0200
commit5eb0947ce2dd81875198b8c60f9a718068c6dc6e (patch)
tree9c9b99792e77e61df1eff9dd3fe914467cbb23c4 /dozentenmodulserver/src
parent[server] Restore Java 1.8 compat for now (diff)
downloadtutor-module-5eb0947ce2dd81875198b8c60f9a718068c6dc6e.tar.gz
tutor-module-5eb0947ce2dd81875198b8c60f9a718068c6dc6e.tar.xz
tutor-module-5eb0947ce2dd81875198b8c60f9a718068c6dc6e.zip
[server] DB: Make .lastInsertId() actually work
It's unused currently so never mattered, but better be safe for the future. :-)
Diffstat (limited to 'dozentenmodulserver/src')
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/MysqlStatement.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/MysqlStatement.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/MysqlStatement.java
index a5d0f49d..23c43497 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/MysqlStatement.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/MysqlStatement.java
@@ -41,7 +41,7 @@ public class MysqlStatement implements Closeable {
}
}
this.query = query;
- this.statement = con.prepareStatement(query.sql);
+ this.statement = con.prepareStatement(query.sql, Statement.RETURN_GENERATED_KEYS);
}
public String getQuery()