ecpg core dump

From: "S(dot)F(dot) Lee" <sflee_tw(at)yahoo(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: ecpg core dump
Date: 2000-02-11 06:58:38
Message-ID: 20000211065838.9193.rocketmail@web222.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi,
I am using Red Hat 6.0 + PostgreSQL 6.5.1, now I
have a problem in ecpg parsing.

Table definition:
CREATE TABLE mtr_name
(
recno int PRIMARY KEY, -- PRIMARY KEY
mtrid char(80), -- material id
mtrname char(20), -- material name(short)
full char(300), -- full material name
spare int

);

The program(mtr_name.pgc) in attachment include 4 C
functions:
1. sql_select_between
2. sql_update(int RECNO,char* field)
3. sql_update(int RECNO)
4. sql_delete(int RECNO)

When I executed
/usr/local/pgsql/bin/ecpg mtr_name.pgc
I got "Segmentation fault (core dumped)"

But if I commented either the C function 1
(sql_select_between) or 4 (sql_delete), and everything
seemed fine.Can anybody give me a hint?

Thanks
S.F.Lee
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

Attachment Content-Type Size
mtr_name.pgc application/octet-stream 4.6 KB

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Mike Mascari 2000-02-11 07:11:25 Re: [HACKERS] Re: [INTERFACES] The persistance of C functions
Previous Message Tom Lane 2000-02-10 23:00:47 Re: [INTERFACES] Need Help with pgsql