From: Rainer Leo <leo@workfile.de>
To: pgsql-sql@postgresql.org
Subject: error code invalid_input_syntax
Date: Thu, 12 Jan 2006 08:43:59 +0000 (UTC)
Message-ID: <loom.20060112T094211-926@post.gmane.org> (raw)
I wrote a function which generates SQL statements
for INSERTs and UPDATEs, in which I cast the values
to the correct datatype.
Now I want to catch
ERROR: invalid input syntax for integer: "i"
but although I tried quite a few I can't find the right
error code for this exception.
Is it possible that this error can not be caught?
Thanks
Leo
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: leo@workfile.de
Subject: Re: error code invalid_input_syntax
In-Reply-To: <loom.20060112T094211-926@post.gmane.org>
* 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