diff options
| author | unknown | 2014-04-15 13:33:31 +0200 |
|---|---|---|
| committer | unknown | 2014-04-15 13:33:31 +0200 |
| commit | 83faaa19a0ea1d8622a3e27a250fb6f0a5c5bc5a (patch) | |
| tree | 970bc2e3bbd75334d16b20476c5e5b5fb8f894b5 /Dozentenmodulserver/src/sql | |
| parent | Merge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module (diff) | |
| download | tutor-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.java | 15 |
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
|
