pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Herouth Maoz <herouth@oumail.openu.ac.il>
Cc: Mitch Vincent <mitch@venux.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Reasonable
Date: Tue, 05 Oct 1999 19:10:10 -0400
Message-ID: <12586.939165010@sss.pgh.pa.us> (raw)
In-Reply-To: <l03130302b41fd75952e6@[147.233.159.109]>

Herouth Maoz <herouth@oumail.openu.ac.il> writes:
> Another potential problem is your use of a six-letter long default for a
> varying(1) field ("status").

6.5.* has some problems with wrong-length default values for char(n) and
varchar(n) fields.  There is a slightly klugy fix in place for char(n),
but a cursory test suggests that it doesn't catch the varchar case.
The consequences aren't as bad as they were for char(n): you just get
a field value that's longer than it's supposed to be.  Workaround:
give a correct default value.

This is all fixed properly in current sources (6.6/7.0-to-be).

			regards, tom lane



view thread (4+ messages)

Message-ID: <12586.939165010@sss.pgh.pa.us>
Permalink:  ../12586.939165010@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12586.939165010@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, herouth@oumail.openu.ac.il, mitch@venux.net
  Subject: Re: [SQL] Reasonable
  In-Reply-To: <12586.939165010@sss.pgh.pa.us>
  References: <l03130302b41fd75952e6@[147.233.159.109]> <12586.939165010@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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