Re: Tipos times

From: "Linder Poclaba" <linder(dot)poclaba(at)gmail(dot)com>
To: "Jaime Casanova" <systemguards(at)gmail(dot)com>
Cc: "Jorge Martinez" <jlm4303(at)yahoo(dot)com(dot)ar>, pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Tipos times
Date: 2006-07-18 13:31:55
Message-ID: 5aa69e1b0607180631l42b97068o66995622739fbb5c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On 7/17/06, Jaime Casanova <systemguards(at)gmail(dot)com> wrote:
>
> On 7/17/06, Linder Poclaba <linder(dot)poclaba(at)gmail(dot)com> wrote:
> >
> > On 7/17/06, Jorge Martinez <jlm4303(at)yahoo(dot)com(dot)ar> wrote:
> > >
> > >
> > > Saludos a todos:
> > > Intentando ejecutar un update con campos o atributos time me dio el
> > siguiente mensaje:
> > >
> > > update config set tole3=tole+tole2
> > >
> > > ERROR: operator is not unique: time without time zone + time without
> time
> > zone
> > > HINT: Could not choose a best candidate operator. You may need to add
> > explicit type casts.
> >
> >
> > una vez me necesite también sumar tiempos y me salió lo mismo, hice una
> > cosa, se que está mal pero funcionó :)
> >
> > en tu caso seria:
> > update config set tole3=tole-(-tole2);
> >
> >
>
> que version de postgres estan usando y que tipo de datos son los
> campos de la tabla y las variables?
>
> probe con una tabla con un campo time y le sume current_time y no tuve
> problema, estoy usando 8.1.3

yo también estoy con esa versión, la estructura de la tabla es:

=# \d vuelta
Table "public.vuelta"
Column | Type |
Modifiers
--------------------+------------------------+------------------------------------------------------------
id_vuelta | integer | not null default
nextval('vuelta_id_vuelta_seq'::regclass)
piloto | text |
n_auto | integer |
n_vuelta | integer |
tiempo_i | time without time zone |
tiempo_f | time without time zone |
suma_tiempos | time without time zone |
diferencia_tiempos | time without time zone |

--
> Atentamente,
> Jaime Casanova
>
> "Programming today is a race between software engineers striving to
> build bigger and better idiot-proof programs and the universe trying
> to produce bigger and better idiots.
> So far, the universe is winning."
> Richard Cook
>

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Edwin Quijada 2006-07-18 13:40:58 RE: De Msql a Postgres
Previous Message Mario Gonzalez 2006-07-18 05:21:40 Re: Traduccion de documentacion fue:(Cursores)