Re: ambiguous sql states - Mailing list pgsql-hackers

From Dave Cramer
Subject Re: ambiguous sql states
Date
Msg-id 1061679057.2211.101.camel@localhost.localdomain
Whole thread Raw
In response to Re: ambiguous sql states  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Specifically, if you try to open a file for copy, and it isn't there it
will return

int
errcode_for_file_access(void)
{
               case ENOENT:                    /* No such file or
directory */                       edata->sqlerrcode = ERRCODE_UNDEFINED_OBJECT;                       break;

                                      
 
Dave

On Sat, 2003-08-23 at 15:42, Peter Eisentraut wrote:
> Dave Cramer writes:
> 
> > I'm working on identifying various errors in ecpg using sql state and
> > one which is particularly ambiguous is ERRCODE_UNDEFINED_OBJECT for a
> > file which isn't found. This is returned in a number of places. Is it
> > possible to get a set of file specific error codes?
> 
> That error code if for undefined objects, not files that can't be found.
> Can you identify the cases you are concerned about?
-- 
Dave Cramer <dave@fastcrypt.com>
fastcrypt



pgsql-hackers by date:

Previous
From: "Dave Page"
Date:
Subject: libpq with SSL on Win32
Next
From: Robert Creager
Date:
Subject: Re: Header files installed for contrib modules?