| From: | João Paulo Zavanela <joao_zava(at)globo(dot)com> | 
|---|---|
| To: | "Andrei Kovalevski" <andyk(at)commandprompt(dot)com>, "Postgresql" <pgsql-general(at)postgresql(dot)org> | 
| Subject: | Re: number errors | 
| Date: | 2007-11-07 18:28:37 | 
| Message-ID: | 47276A43000133AF@mail04.sc2.he.tucows.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-general | 
>> Hi all,
>>
>> When my application returns errors from database, some numbers errors
is
>> equals.
>> Why number errors is equals? odbc driver or postgresql return this?
>>
>> It's run in Windows.
>>
>> Thanks.
>
>Hello,
>
>If you use ODBC - you should devide error from ODBC driver and errors 
>from PostgreSQL, ODBC driver return it's own error codes, and composes 
>error Description depending on Error Code and Text from PostgreSQL 
>server. So you should have  numbers:
>1) ODBC error code - described in MSDN;
>2) Native PostgreSQL error code - described in PostgreSQL manual;
>3) Error description - composed by ODBC driver, based on description and
>
>error code, returned from server.
Hi,
Thanks for help.
I'm using ODBC Driver, so the ODBC driver returns the errors, ok?
So, this errors is independent from PostgreSQL server?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2007-11-07 18:34:08 | Re: Npsql is much faster than ODBC ? | 
| Previous Message | Scott Marlowe | 2007-11-07 18:24:14 | Re: Temporary, In-memory Postgres DB? |