summaryrefslogtreecommitdiffstats
path: root/Dozentenmodulserver/src/sql
diff options
context:
space:
mode:
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