[Mpuls-commits] r424 - in wasko/trunk: . waskaweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Mar 23 16:39:06 CET 2009


Author: torsten
Date: 2009-03-23 16:39:05 +0100 (Mon, 23 Mar 2009)
New Revision: 424

Modified:
   wasko/trunk/ChangeLog.txt
   wasko/trunk/waskaweb/model/appointment.py
Log:
Fixed issue113


Modified: wasko/trunk/ChangeLog.txt
===================================================================
--- wasko/trunk/ChangeLog.txt	2009-03-23 11:01:43 UTC (rev 423)
+++ wasko/trunk/ChangeLog.txt	2009-03-23 15:39:05 UTC (rev 424)
@@ -5,6 +5,11 @@
 	* waskaweb/controllers/waska.py: Automatic reminders not rendered
 	  under own appointments anymore.
 
+	Fixed issue113
+
+	* waskaweb/model/appointment.py: Need expicit cast to timestamp in
+	SQL-query.
+
 2009-03-21	Torsten Irlaender  <torsten.irlaender at intevation.de> 
 
 	Fixed issue110

Modified: wasko/trunk/waskaweb/model/appointment.py
===================================================================
--- wasko/trunk/waskaweb/model/appointment.py	2009-03-23 11:01:43 UTC (rev 423)
+++ wasko/trunk/waskaweb/model/appointment.py	2009-03-23 15:39:05 UTC (rev 424)
@@ -47,8 +47,8 @@
 DELETE_GLOBAL_APPOINTMENT_SQL = "select delete_global_termin_ds(%(id)s)"
 CREATE_GLOBAL_APPOINTMENT_SQL = "select create_global_termin_ds()"
 STORE_GLOBAL_APPOINTMENT_SQL = "UPDATE ka_global_termine_tbl_view SET \
-                                sdatum = %(start_date)s::date, \
-                                edatum = %(end_date)s::date, \
+                                sdatum = %(start_date)s::timestamp, \
+                                edatum = %(end_date)s::timestam, \
                                 name = %(title)s, \
                                 beschreibung = %(description)s, \
                                 art = %(type)s \
@@ -62,8 +62,8 @@
 DELETE_CASE_APPOINTMENT_SQL = "select delete_fall_termin_ds(%(id)s)"
 CREATE_CASE_APPOINTMENT_SQL = "select create_fall_termin_ds(%(id)s)"
 STORE_CASE_APPOINTMENT_SQL = "UPDATE ka_fall_termine_tbl_view SET \
-                                sdatum = %(start_date)s::date, \
-                                edatum = %(end_date)s::date, \
+                                sdatum = %(start_date)s::timestamp, \
+                                edatum = %(end_date)s::timestamp, \
                                 name = %(title)s, \
                                 beschreibung = %(description)s, \
                                 art = %(type)s \



More information about the Mpuls-commits mailing list