pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Yudie <yudie@axiontech.com>
To: pgsql-sql@postgresql.org
Subject: query configuration for validate empty quote to zero
Date: Mon, 17 Jan 2005 12:44:20 -0600
Message-ID: <000d01c4fcc4$90fc9b40$a101a8c0@home.axiontech.com> (raw)

We just changed the postgresql server and got some problem with sql command
in our old server we can exexute this query: 

SELECT * FROM product WHERE prdtnumber = ''

field prdtnumber data type is integer and the empty quote somehow can be assumed into 0 (zero)
Now,  if I use the same query it return an error:
invalid input syntax for integer: ""

Anyone know what's the problem??

Thanks

Yudie

view thread (4+ messages)  latest in thread

Message-ID: <000d01c4fcc4$90fc9b40$a101a8c0@home.axiontech.com>
Permalink:  ../000d01c4fcc4$90fc9b40$a101a8c0@home.axiontech.com/
Also on:    postgresql.org/message-id/000d01c4fcc4$90fc9b40$a101a8c0@home.axiontech.com

 · 

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: yudie@axiontech.com
  Subject: Re: query configuration for validate empty quote to zero
  In-Reply-To: <000d01c4fcc4$90fc9b40$a101a8c0@home.axiontech.com>

* 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