comparison artifact-database/src/main/resources/sql/org-postgresql-driver.properties @ 170:ac0f8bd97277

Fix parameter propagation of creation time ond collection names. artifacts/trunk@1395 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 04 Mar 2011 10:51:10 +0000
parents c9c27aca2f70
children 940ed629419f
comparison
equal deleted inserted replaced
169:2f575d594fdb 170:ac0f8bd97277
47 47
48 collections.insert= \ 48 collections.insert= \
49 INSERT INTO collections (id, gid, name, owner_id, creation, last_access, ttl) \ 49 INSERT INTO collections (id, gid, name, owner_id, creation, last_access, ttl) \
50 VALUES (?, ?::uuid, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?) 50 VALUES (?, ?::uuid, ?, ?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ?)
51 51
52 collection.creation.time=SELECT creation from collections WHERE id = ?
53
52 collections.select.user= \ 54 collections.select.user= \
53 SELECT c.gid, c.name, c.creation, u.gid FROM \ 55 SELECT c.gid, c.name, c.creation, u.gid FROM \
54 collections c OUTER LEFT JOIN user u ON c.owner_id = u.id \ 56 collections c OUTER LEFT JOIN users u ON c.owner_id = u.id \
55 WHERE u.gid = ?::uuid 57 WHERE u.gid = ?::uuid
56 58
57 collections.select.all= \ 59 collections.select.all= \
58 SELECT c.gid, c.name, c.creation, u.gid FROM \ 60 SELECT c.gid, c.name, c.creation, u.gid FROM \
59 collections c OUTER LEFT JOIN user u ON c.owner_id = u.id 61 collections c OUTER LEFT JOIN users u ON c.owner_id = u.id
60 62
61 users.collections=SELECT collection_id, gid, name FROM collections WHERE owner_id = ? 63 users.collections=SELECT collection_id, gid, name FROM collections WHERE owner_id = ?
62 users.collection.ids=SELECT collection_id FROM collections WHERE owner_id = ? 64 users.collection.ids=SELECT collection_id FROM collections WHERE owner_id = ?
63 65
64 artifacts.in.one.collection.only=\ 66 artifacts.in.one.collection.only=\

http://dive4elements.wald.intevation.org