[Dive4elements-commits] [PATCH] Do not use from and to as variables in statement

Wald Commits scm-commit at wald.intevation.org
Thu May 16 17:48:27 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1368719300 -7200
# Node ID cb4dee70455500d9ddd2fa3c5106aa71e54b7211
# Parent  d12f920bbf0063d28b24699493b6d222dfc46903
Do not use from and to as variables in statement.

    Those are keywords.

diff -r d12f920bbf00 -r cb4dee704555 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Thu May 16 16:14:28 2013 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Thu May 16 17:48:20 2013 +0200
@@ -566,13 +566,13 @@
               <dc:for-each>
                 <dc:context>
                   <dc:statement>
-                    SELECT min(station) AS from,
-                           max(station) AS to
+                    SELECT min(station) AS from_station,
+                           max(station) AS to_station
                     FROM morphologic_width_values
                     WHERE morphologic_width_id = ${width_id}
                   </dc:statement>
                   <dc:for-each>
-                    <morphologic-width name="{$from} - {$to}"
+                    <morphologic-width name="{$from_station} - {$to_station}"
                                        ids="{$width_id}"
                                        factory="morph-width"/>
                   </dc:for-each>


More information about the Dive4elements-commits mailing list