Ver Mensaje Individual
  #1  
Antiguo 08-03-2011
Avatar de Chogo
Chogo Chogo is offline
Miembro
 
Registrado: may 2005
Ubicación: Pto Cortes,Honduras,C.A.
Posts: 148
Reputación: 20
Chogo Va por buen camino
TimeStamp = TimeStamp me da error

Hola amigos de foro

tengo un StoreProcedure que consulto una tabla, la cuestion es que recupero un campo timestamp de esa misma tabla y lo almacena una
variable que se llama "XFECHA_HORA"

Código SQL [-]
SELECT 
    FECHA_HORA 
FROM 
    MARCACIONES_RELOJ 
WHERE 
    MARCACIONES_RELOJ.CODEMPLEADO = :CODEMPLEADO AND       MARCACIONES_RELOJ.FECHA = :FECHA
ORDER BY
    MARCACIONES_RELOJ.FECHA_HORA
INTO 
    :XFECHA_HORA

Pero despues quiero que otra variable tipo timestamp tome ese mismo valor
en el siguiente codigo

Código SQL [-]
    IF (COLUMNA = 0) THEN
    ENTRADA0=XFECHA_HORA;

Al hacer esto me da el siguiente error.

Overflow occurred during data type conversion.Conversion error from string "28/02/2011 06:59:31 a.m.".
SQL Code: -413
IB Error Number: 3355443


Lo raro es que no siempre me genera este error, es con algunos registros

uso firebird 2.05
Responder Con Cita