pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Automatic casting
2+ messages / 2 participants
[nested] [flat]

* Automatic casting
@ 2003-02-03 12:08 Vicente Alabau Gonzalvo <vicente.alabau-gonzalvo@cgey.com>
  2003-02-06 23:02 ` Re: Automatic casting Josh Berkus <josh@agliodbs.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Vicente Alabau Gonzalvo @ 2003-02-03 12:08 UTC (permalink / raw)
  To: pgsql-sql

Is there any way of doing
  nodo_fecha_activ<= 1044226800000::numeric
without casting?

nodo_fecha_activ is numeric


if I try nodo_fecha_activ<= 1044226800000 then it gives me this error
ERROR:  Unable to identify an operator '<=' for types 'numeric' and 
'double precision'




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Automatic casting
  2003-02-03 12:08 Automatic casting Vicente Alabau Gonzalvo <vicente.alabau-gonzalvo@cgey.com>
@ 2003-02-06 23:02 ` Josh Berkus <josh@agliodbs.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Josh Berkus @ 2003-02-06 23:02 UTC (permalink / raw)
  To: Vicente Alabau Gonzalvo <vicente.alabau-gonzalvo@cgey.com>; pgsql-sql

Vicente,


> if I try nodo_fecha_activ<= 1044226800000 then it gives me this error
> ERROR:  Unable to identify an operator '<=' for types 'numeric' and
> 'double precision'

This is a known problem that will be fixed in a later version of
Postgres.  For now, you have to cast.

-Josh




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-02-06 23:02 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-02-03 12:08 Automatic casting Vicente Alabau Gonzalvo <vicente.alabau-gonzalvo@cgey.com>
2003-02-06 23:02 ` Josh Berkus <josh@agliodbs.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox