error "cannot convert..."
Publicado por samuel (4 intervenciones) el 22/04/2008 18:08:34
Hola a todos,
tengo problemas con las datawindows que reciben retrieval arguments de tipo date. En la base de datos los campos que me dan problemas son de tipo timestamp. Al tratar de modificar la datawindow me sale siempre el error "cannot convert 14/07/1990 to a date/time". Un ejemplo de select dónde m da error es este:
SELECT "noti_notific"."da_anyo",
"noti_notific"."da_numero",
"censo"."apenom",
"noti_notific"."da_situacion",
"noti_notific"."da_tipo_docu",
"noti_notific"."da_fecha_notifi"
FROM "noti_notific" LEFT OUTER JOIN "censo" ON "noti_notific"."da_nif_destinatari" = "censo"."cif"
WHERE ( "NOTI_NOTIFIC"."DA_FECHA_NOTIFI" >= :fecha_desde ) AND
( "NOTI_NOTIFIC"."DA_FECHA_NOTIFI" <= :fecha_hasta ) AND
( "NOTI_NOTIFIC"."DA_SITUACION" <> 'NOT' ) AND
( "NOTI_NOTIFIC"."DA_SITUACION" <> 'ARC' ) AND
( "NOTI_NOTIFIC"."DA_SITUACION" <> 'PEN' ) AND
( "NOTI_NOTIFIC"."DA_PROVINCIA" = :provincia )
donde fecha_desde y fecha_hasta son los argumetnos tipo date y DA_FECHA_NOTIFI un campo tipo timestamp. Utilizo powerbuilder 8 y sql anywhere 5
Alguna sugerencia??
Un saludo.
tengo problemas con las datawindows que reciben retrieval arguments de tipo date. En la base de datos los campos que me dan problemas son de tipo timestamp. Al tratar de modificar la datawindow me sale siempre el error "cannot convert 14/07/1990 to a date/time". Un ejemplo de select dónde m da error es este:
SELECT "noti_notific"."da_anyo",
"noti_notific"."da_numero",
"censo"."apenom",
"noti_notific"."da_situacion",
"noti_notific"."da_tipo_docu",
"noti_notific"."da_fecha_notifi"
FROM "noti_notific" LEFT OUTER JOIN "censo" ON "noti_notific"."da_nif_destinatari" = "censo"."cif"
WHERE ( "NOTI_NOTIFIC"."DA_FECHA_NOTIFI" >= :fecha_desde ) AND
( "NOTI_NOTIFIC"."DA_FECHA_NOTIFI" <= :fecha_hasta ) AND
( "NOTI_NOTIFIC"."DA_SITUACION" <> 'NOT' ) AND
( "NOTI_NOTIFIC"."DA_SITUACION" <> 'ARC' ) AND
( "NOTI_NOTIFIC"."DA_SITUACION" <> 'PEN' ) AND
( "NOTI_NOTIFIC"."DA_PROVINCIA" = :provincia )
donde fecha_desde y fecha_hasta son los argumetnos tipo date y DA_FECHA_NOTIFI un campo tipo timestamp. Utilizo powerbuilder 8 y sql anywhere 5
Alguna sugerencia??
Un saludo.
Valora esta pregunta


0