view flys-aft/src/main/resources/sql/aft-common.properties @ 5200:42bb6ff78d1b 2.9.11

Directly set the connectionInitSqls on the datasource Somehow the factory fails to set the connectionInitSqls if we add it to the dbcpProperties. So we now set it directly
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 08 Mar 2013 11:48:33 +0100
parents 2b7f44c80857
children da1e897c7224
line wrap: on
line source
select.gewaesser = \
    SELECT GEWAESSER_NR, NAME FROM SL_GEWAESSER
select.messstelle = \
    SELECT NAME, MESSSTELLE_NR, STATIONIERUNG \
    FROM MESSSTELLE \
    WHERE GEWAESSER_NR = :GEWAESSER_NR
select.abflusstafel = \
    SELECT ABFLUSSTAFEL_NR, \
           ABFLUSSTAFEL_BEZ, \
           strftime('%s', GUELTIG_VON) * 1000 AS GUELTIG_VON, \
           strftime('%s', GUELTIG_BIS) * 1000 AS GUELTIG_BIS, \
           PEGELNULLPUNKT, \
           BFG_ID \
    FROM ABFLUSSTAFEL \
    WHERE MESSSTELLE_NR LIKE :number
select.tafelwert = \
    SELECT TAFELWERT_NR AS id, WASSERSTAND AS w, ABFLUSS AS q FROM TAFELWERT \
    WHERE ABFLUSSTAFEL_NR = :number

http://dive4elements.wald.intevation.org