From: Chander Ganesan <chander@otg-nc.com>
To: Marc Fromm <Marc.Fromm@wwu.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: character varying exceeded
Date: Tue, 20 May 2008 11:30:23 -0400
Message-ID: <4832EE8F.3030300@otg-nc.com> (raw)
In-Reply-To: <81FEAB8CDDC62B42B6E8AA258228BC8805657B98@EVS2.univ.dir.wwu.edu>
References: <81FEAB8CDDC62B42B6E8AA258228BC8805657B98@EVS2.univ.dir.wwu.edu>
Marc Fromm wrote:
> WE have a db with a column/field of type "character varying" set to a
> length of 1000. A user attempted to enter data into this column/field
> breached the 1000 limit. When the user submitted the form the data was
> not entered into the database and no error or message was displayed.
>
> Is there a way to have postgresql let the user no the entry attempt was
> declined? What is the best way to handle these situations
PostgreSQL does indicate that the statement failed. Chances are your
application code (that does the insert) is ignoring the error. You
should check your application code to ensure that it's handling error
messages on insert failures correctly, and notifying the user as
appropriate.
--
Chander Ganesan
Open Technology Group, Inc.
One Copley Parkway, Suite 210
Morrisville, NC 27560
919-463-0999/877-258-8987
http://www.otg-nc.com
Ask me about OTG's Expert PostgreSQL, PostGIS, PHP, and other Open Source training offerings.
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-admin@postgresql.org
Cc: chander@otg-nc.com, Marc.Fromm@wwu.edu
Subject: Re: character varying exceeded
In-Reply-To: <4832EE8F.3030300@otg-nc.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