From: S.F. Lee <sflee_tw@yahoo.com>
To: pgsql-interfaces@postgresql.org
Subject: ecpg core dump
Date: Thu, 10 Feb 2000 22:58:38 -0800 (PST)
Message-ID: <20000211065838.9193.rocketmail@web222.mail.yahoo.com> (raw)
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.comAttachments:
mtr_name.pgc (application/octet-stream, 4.6K) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: sflee_tw@yahoo.com
Subject: Re: ecpg core dump
In-Reply-To: <20000211065838.9193.rocketmail@web222.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox