Skip site navigation (1) Skip section navigation (2)

Re: [PORTS] Port Bug Report: pg_dump -d database >unload.file; cat unload.file|psql database ARE NOT EQUAL

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: karpov(at)allonge(dot)viaduk(dot)net
Cc: hackers(at)postgreSQL(dot)org (PostgreSQL-development), lockhart(at)alumni(dot)caltech(dot)edu (Thomas G(dot) Lockhart)
Subject: Re: [PORTS] Port Bug Report: pg_dump -d database >unload.file; cat unload.file|psql database ARE NOT EQUAL
Date: 1998-03-28 21:14:10
Message-ID: 199803282114.QAA18330@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
> create table templ_arg(accii int2,type char,sign float8);
> create table a1 () inherits (templ_arg);
> insert into a1 values (9999,'a',1); -- working;
> insert into a1 values (9999,'a',-1); -- ERROR;
> insert into a1 values (9999,'a',-1.0); --working

Looking at the grammar, I think that -1 is being interpreted as the
expression minus and 1, as in (no_expression - 1), and the complaint is
that that expression is not a float8.  We already have code to promote
constants to float4.  Thomas will have to comment, because he
understands the handling of the minuses.

-- 
Bruce Momjian                          |  830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date

Next:From: Bruce MomjianDate: 1998-03-28 21:22:44
Subject: Re: [PORTS] Port Bug Report: pg_dump -d database >unload.file; cat unload.file|psql database ARE NOT EQUAL
Previous:From: Bruce MomjianDate: 1998-03-28 20:52:19
Subject: Re: [PORTS] Port Bug Report: pg_dump -d database >unload.file; cat unload.file|psql database ARE NOT EQUAL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group