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

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 (view raw or flat)
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: mtr_name.pgc
Description: application/octet-stream (4.6 KB)

Responses

pgsql-interfaces by date

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

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