Skip site navigation (1) Skip section navigation (2)

ecpg "aborts" on structure reference

From: Tim Nelson <TNELSON(at)ECS-INC(dot)com>
To: "'pgsql-bugs(at)postgresql(dot)org'" <pgsql-bugs(at)postgresql(dot)org>
Subject: ecpg "aborts" on structure reference
Date: 2002-01-09 13:25:54
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
Think I've identified a bug in ecpg 2.8 (RH7.1) the following
code aborts (crashes) ecpg:

exec sql include     sqlca;
exec sql include     ../../libhome/dbincs/apc_layout.h;
exec sql include     ../../libhome/dbincs/apc_layo_fld.h;

   static int
   exec sql begin declare section;
   char           curr_sect[2];
   exec sql end declare section;

   if (1) {
      exec sql declare fld_curs cursor for
         select apc_layo_fld.*
            from apc_layo_fld
            where apcl_id = :PL.apcl_id
              and apclf_sect_flg = :curr_sect
         order by apclf_ln_nbr, apclf_col_nbr;

   exec sql open fld_curs;

... key line here is "where apcl_id = :PL.apcl_id" if I replace
it with "where apcl_id = 1" ... ecpg no longer crashes.

If this has been fixed in 2.9, I would be happy to beta it since
I am porting more that million lines of code from Informix ESQL to
Postgres.  I am not sure how to get the latest version since
I am new to the open source game.

Tim Nelson

pgsql-bugs by date

Next:From: pgsql-bugsDate: 2002-01-09 14:52:14
Subject: Bug #558: JDBC from oid returns incorrect values for negative bytes and really messes up -1
Previous:From: jasonDate: 2002-01-09 06:07:43
Subject: createlang

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group