pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sad <sad@bankir.ru>
To: pgsql-sql@postgresql.org
Subject: empty string casting to typed value
Date: Mon, 7 Jun 2004 10:37:44 +0400
Message-ID: <200406071037.44547.sad@bankir.ru> (raw)

Hello

It is clear that '' is a bad integer or timestamp representation

but during the user input NULLs are usually represented with empty strings
sometimes bunch of  'if empty' instructions grows huge
(and in case of casting to timestamp apostrophes make sense)

Why you prohibit casting ''::int  to NULL ?
What would you advice ?

thnx







view thread (3+ messages)  latest in thread

Message-ID: <200406071037.44547.sad@bankir.ru>
Permalink:  ../200406071037.44547.sad@bankir.ru/
Also on:    postgresql.org/message-id/200406071037.44547.sad@bankir.ru

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sad@bankir.ru
  Subject: Re: empty string casting to typed value
  In-Reply-To: <200406071037.44547.sad@bankir.ru>

* 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