Re: Strange Type Mismatch on Insert

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Eckermann <jeckermann(at)verio(dot)net>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Strange Type Mismatch on Insert
Date: 2001-03-20 00:26:53
Message-ID: 8264.985048013@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jeff Eckermann <jeckermann(at)verio(dot)net> writes:
> Can anyone see what is the problem with the following insert?
> gmp=# insert into data (site, gmp_id, item, category, gmp) values
> ('Rochester', 22, 'Design fee', 12, 40000.00);
> ERROR: Unable to identify an operator '=' for types 'text' and 'int4'

Got any foreign keys associated with that table? Check for type
mismatch between referencing and referenced columns. It's a bug
that such problems are not detected when you declare the key
relationship, but right now they're not detected until runtime...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Fitzmyers 2001-03-20 00:48:08 What could cause postmaster to be started many times?
Previous Message Hiroshi Inoue 2001-03-20 00:23:02 RE: concurrent updates problem