From: DalTech - CTE <CTE@Dal.Ca>
To: josh@agliodbs.com
Cc: Pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Variable-length Types
Date: Tue, 17 Oct 2000 13:54:28 -0300
Message-ID: <00e701c0385a$e9d47180$5911be86@cte.Dal.Ca> (raw)
References: <871yxi432t.fsf@matt.w80.math-hat.com>
<39E9F80C.D9BE2054@agliodbs.com>
> It takes a string and returns something that looks like Varchar(22);
> If someone types in 10 digits, it returns output like (###) ###-####
> If a user enters 7 digits, it picks a default area code and returns
> (415) ###-####,
> and if they type more than 10 digits or enter any digits after an "x",
> they get (###) ###-#### x###
Why not treat each group of ###s as its own variable? You would then have a
lot of freedom to insert defaults if null and the like.
-C. Currie
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: CTE@Dal.Ca, josh@agliodbs.com
Subject: Re: Variable-length Types
In-Reply-To: <00e701c0385a$e9d47180$5911be86@cte.Dal.Ca>
References: <871yxi432t.fsf@matt.w80.math-hat.com> <39E9F80C.D9BE2054@agliodbs.com> <00e701c0385a$e9d47180$5911be86@cte.Dal.Ca>
* 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