diff artifact-database/src/main/resources/sql/org-h2-driver.properties @ 181:116482169b44

Adapted the sql statements for fetching all collections and all user collections from database. artifacts/trunk@1407 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 07 Mar 2011 11:10:45 +0000
parents 38fbbeffe8fe
children a22b7e367b25
line wrap: on
line diff
--- a/artifact-database/src/main/resources/sql/org-h2-driver.properties	Sun Mar 06 11:49:00 2011 +0000
+++ b/artifact-database/src/main/resources/sql/org-h2-driver.properties	Mon Mar 07 11:10:45 2011 +0000
@@ -104,12 +104,12 @@
 
 collections.select.user= \
     SELECT c.gid, c.name, c.creation, u.gid FROM \
-    collections c OUTER LEFT JOIN users u ON c.owner_id = u.id \
+    collections c LEFT OUTER JOIN users u ON c.owner_id = u.id \
     WHERE u.gid = ?
 
 collections.select.all= \
     SELECT c.gid, c.name, c.creation, u.gid FROM \
-    collections c OUTER LEFT JOIN users u ON c.owner_id = u.id
+    collections c LEFT OUTER JOIN users u ON c.owner_id = u.id
 
 users.collections=SELECT collection_id, gid, name FROM collections WHERE owner_id = ?
 users.collection.ids=SELECT collection_id FROM collections WHERE owner_id = ?

http://dive4elements.wald.intevation.org