comparison artifact-database/src/main/resources/sql/org-postgresql-driver.properties @ 197:94654cbf8db2

Fixed a typo in the sql statements. artifacts/trunk@1435 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 09 Mar 2011 10:24:56 +0000
parents 63f555bbdbc0
children face2302387c
comparison
equal deleted inserted replaced
196:171b6200d26d 197:94654cbf8db2
9 9
10 artifacts.touch=UPDATE artifacts SET last_access = CURRENT_TIMESTAMP WHERE id = ? 10 artifacts.touch=UPDATE artifacts SET last_access = CURRENT_TIMESTAMP WHERE id = ?
11 11
12 artifacts.outdated=SELECT id, factory, data FROM artifacts WHERE ttl IS NOT NULL \ 12 artifacts.outdated=SELECT id, factory, data FROM artifacts WHERE ttl IS NOT NULL \
13 AND CURRENT_TIMESTAMP - last_access > (ttl || ' microseconds')::interval \ 13 AND CURRENT_TIMESTAMP - last_access > (ttl || ' microseconds')::interval \
14 AND id NOT IN (SELECT UNIQUE artifact_id FROM collection_items) \ 14 AND id NOT IN (SELECT DISTINCT artifact_id FROM collection_items) \
15 LIMIT 50 15 LIMIT 50
16 16
17 artifacts.select.gid=SELECT id, last_access, ttl, factory, data FROM artifacts WHERE gid = ?::uuid 17 artifacts.select.gid=SELECT id, last_access, ttl, factory, data FROM artifacts WHERE gid = ?::uuid
18 18
19 artifacts.get.id=SELECT id FROM artifacts WHERE gid = ?::uuid 19 artifacts.get.id=SELECT id FROM artifacts WHERE gid = ?::uuid

http://dive4elements.wald.intevation.org