summaryrefslogtreecommitdiffstats
path: root/Dozentenmodulserver/src/sql
diff options
context:
space:
mode:
authorunknown2014-04-15 13:33:31 +0200
committerunknown2014-04-15 13:33:31 +0200
commit83faaa19a0ea1d8622a3e27a250fb6f0a5c5bc5a (patch)
tree970bc2e3bbd75334d16b20476c5e5b5fb8f894b5 /Dozentenmodulserver/src/sql
parentMerge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module (diff)
downloadtutor-module-83faaa19a0ea1d8622a3e27a250fb6f0a5c5bc5a.tar.gz
tutor-module-83faaa19a0ea1d8622a3e27a250fb6f0a5c5bc5a.tar.xz
tutor-module-83faaa19a0ea1d8622a3e27a250fb6f0a5c5bc5a.zip
b
Diffstat (limited to 'Dozentenmodulserver/src/sql')
-rw-r--r--Dozentenmodulserver/src/sql/SQL.java15
1 files changed, 6 insertions, 9 deletions
diff --git a/Dozentenmodulserver/src/sql/SQL.java b/Dozentenmodulserver/src/sql/SQL.java
index a68e20a2..f03e2c84 100644
--- a/Dozentenmodulserver/src/sql/SQL.java
+++ b/Dozentenmodulserver/src/sql/SQL.java
@@ -507,22 +507,19 @@ public class SQL {
}
- public boolean connectedToEvents(Connection con, String id, String version) {
+ public boolean connectedToLecture(Connection con, String id, String version) {
try {
Statement stm = con.createStatement();
ResultSet rs = stm
- .executeQuery("SELECT ...VERANSTALTUNG_VERKNÜPFUNG... FROM "
- + "bwLehrpool.m_VLData_imageInfo where GUID_imageID = '"
- + id
- + "' "
- + "AND imageVersion = '"
- + version
- + "';");
+ .executeQuery("SELECT lectureID FROM "
+ + "bwLehrpool.m_VLDatalecture where imageID = '"
+ + id + "' " + "AND imageVersion = '"
+ + version + "';");
- return !rs.wasNull();
+ return rs.first();
} catch (SQLException e) {
// TODO Auto-generated catch block