pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: bertolima@yahoo.it
To: pgsql-sql@postgresql.org
Subject: Postgres 8 - problem: invalid input syntax for integer
Date: 23 Feb 2005 02:19:53 -0800
Message-ID: <d64dda1e.0502230219.21e243b1@posting.google.com> (raw)

Hi, In previous version di Postgres (7.2) I used this table:
CREATE TABLE tablename (id serial, field int1, field2 text);

Now this query work:
UPDATE tablename SET field1=''; (NOTE: implicit conversion to 0)
UPDATE tablename SET field2='';

(this cause of simple code-generation query - I don't know what's
field type)

Now in postgres 8 this don't work. 
Why ?(ok, it's the ufficial documentation but I don't understand...
why? it's so comfortable!)
Can someone help me to create a CAST to re-use this feature?
Thank you! Mauro



view thread (4+ messages)  latest in thread

Message-ID: <d64dda1e.0502230219.21e243b1@posting.google.com>
Permalink:  ../d64dda1e.0502230219.21e243b1@posting.google.com/
Also on:    postgresql.org/message-id/d64dda1e.0502230219.21e243b1@posting.google.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: bertolima@yahoo.it
  Subject: Re: Postgres 8 - problem: invalid input syntax for integer
  In-Reply-To: <d64dda1e.0502230219.21e243b1@posting.google.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