dbTalk Databases Forums  

[BUGS] BUG #1056: ecpg ignores WHENEVER NOT FOUND

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1056: ecpg ignores WHENEVER NOT FOUND in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1056: ecpg ignores WHENEVER NOT FOUND - 01-20-2004 , 03:55 PM







The following bug has been logged online:

Bug reference: 1056
Logged by: Wes

Email address: wespgc (AT) syntegra (DOT) com

PostgreSQL version: 7.4

Operating system: Redhat Linux 7.3

Description: ecpg ignores WHENEVER NOT FOUND

Details:

This problem occurs with both 7.4 and 7.4.1. The problem does not occur at
7.3.4.

I have a statement in my program such as:

EXEC SQL WHENEVER NOT FOUND GOTO nextvalError;

The C code generated by ecpg at 7.4 and 7.4.1 is missing the statement:

if (sqlca.sqlcode == ECPG_NOT_FOUND) goto nextvalError;

My workaround is to manually insert this code in my program.


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Reply With Quote
  #2  
Old   
Michael Meskes
 
Posts: n/a

Default Re: [BUGS] BUG #1056: ecpg ignores WHENEVER NOT FOUND - 01-21-2004 , 08:38 AM






On Tue, Jan 20, 2004 at 04:44:30PM -0400, PostgreSQL Bugs List wrote:
Quote:
Description: ecpg ignores WHENEVER NOT FOUND

...
This problem occurs with both 7.4 and 7.4.1. The problem does not occur at
...
I have a statement in my program such as:

EXEC SQL WHENEVER NOT FOUND GOTO nextvalError;

The C code generated by ecpg at 7.4 and 7.4.1 is missing the statement:

if (sqlca.sqlcode == ECPG_NOT_FOUND) goto nextvalError;
For future bug reports, please add a test case as I can only guess now
what you're seeing.

I have found a bug and committed the fix to CVS, but I cannot tell now
if it also fixes your problem.

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes (AT) jabber (DOT) org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.