From: | Dave Cramer <dave(at)fastcrypt(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: ambiguous sql states |
Date: | 2003-08-23 22:50:57 |
Message-ID: | 1061679057.2211.101.camel@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)fastcrypt(dot)com>
fastcrypt
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Creager | 2003-08-23 23:16:12 | Re: Header files installed for contrib modules? |
Previous Message | Dave Page | 2003-08-23 22:15:44 | libpq with SSL on Win32 |