summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNils Schwabe2014-08-25 14:09:54 +0200
committerNils Schwabe2014-08-25 14:09:54 +0200
commitc3ebff840c108a6b0f8af79e776f509cec12b13a (patch)
tree95eff04b1d7ea540dcccee0efc650ab905f6aea5 /src
parentAdd mysql.properties.example (diff)
downloadsatellite-daemon-c3ebff840c108a6b0f8af79e776f509cec12b13a.tar.gz
satellite-daemon-c3ebff840c108a6b0f8af79e776f509cec12b13a.tar.xz
satellite-daemon-c3ebff840c108a6b0f8af79e776f509cec12b13a.zip
Add accidentally removed apostrophes back to DbImage
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/openslx/satellitedaemon/db/DbImage.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/openslx/satellitedaemon/db/DbImage.java b/src/main/java/org/openslx/satellitedaemon/db/DbImage.java
index be968b9..db90116 100644
--- a/src/main/java/org/openslx/satellitedaemon/db/DbImage.java
+++ b/src/main/java/org/openslx/satellitedaemon/db/DbImage.java
@@ -45,21 +45,21 @@ public class DbImage
public static List<DbImage> getAllMarkedForUpload()
{
return MySQL.findAll( DbImage.class, "SELECT image.GUID_imageID, image.image_name, image.imageVersion, image.image_path," +
- " Concat(user.loginName, @, institution.name) AS userID, image.image_filesize" +
+ " Concat(user.loginName, '@', institution.name) AS userID, image.image_filesize" +
" FROM m_VLData_imageInfo image" +
" INNER JOIN m_user user ON (image.image_owner = user.userID)" +
" INNER JOIN m_institution institution ON (institution.institutionID = user.institution)" +
- " WHERE image_syncMode = to_be_published" );
+ " WHERE image_syncMode = 'to_be_published'" );
}
public static List<DbImage> getAllMarkedForDownload()
{
return MySQL.findAll( DbImage.class, "SELECT image.GUID_imageID, image.image_name, image.imageVersion, image.image_path," +
- " Concat(user.loginName, @, institution.name) AS userID, image.image_filesize" +
+ " Concat(user.loginName, '@', institution.name) AS userID, image.image_filesize" +
" FROM m_VLData_imageInfo image" +
" INNER JOIN m_user user ON (image.image_owner = user.userID)" +
" INNER JOIN m_institution institution ON (institution.institutionID = user.institution)" +
- " WHERE image_syncMode = to_be_decentralized" );
+ " WHERE image_syncMode = 'to_be_decentralized'" );
}
public static void updateStatus( String uuid, Status status )