no "+" operator for smallint and bigint

From: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
To: PostgreSQL-general <pgsql-general(at)postgreSQL(dot)org>
Subject: no "+" operator for smallint and bigint
Date: 2003-02-24 11:19:20
Message-ID: 3E59FFB8.5060708@mega-bucks.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Postgres (7.3.2) doesn't seem to know how to add smallint's to bigint's ...

PG=# select 8::smallint + 8::bigint;
ERROR: Unable to identify an operator '+' for types 'smallint' and 'bigint'
You will have to retype this query using an explicit cast

This is surely just an oversight right?

I was trying to add two columns, a smallint col to a bigint col, and
store the result in the bigint col ... only to find to my surprise that
PostgreSQL didn't know how to add smallints to bigints ...

This will be fixed right? ;)

Jc

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2003-02-24 11:39:09 Re: no "+" operator for smallint and bigint
Previous Message Shridhar Daithankar 2003-02-24 08:33:15 Re: A few questions to real pgsql gurus