Almost worked before, but forgot one place to check.
Reported by Tatsuo Ishii.
Still does not do the right thing if inserting into a non-string target
column. Should look for a type coersion later, but doesn't.
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.50 1999/07/11 02:04:19 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.50.2.1 1999/09/13 04:21:21 thomas Exp $
*
*-------------------------------------------------------------------------
*/
* only bother with conversion if not NULL and
* different type...
*/
- if (wtype && (wtype != ptype))
+ if (wtype && (wtype != UNKNOWNOID)
+ && (wtype != ptype))
{
if (can_coerce_type(1, &wtype, &ptype))
{