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

ECPGconnect Error

From: rudy <rudy(at)heymax(dot)com>
To: pgsql-ports(at)postgresql(dot)org
Subject: ECPGconnect Error
Date: 2001-01-12 21:43:32
Message-ID: 3A5F7A84.9CD1A3CD@heymax.com (view raw or flat)
Thread:
Lists: pgsql-ports
I am getting the following error when I try to run a 'C' function from
Postgresql.

/usr/local/pgsql/programs/testdelim.so failed: undefined symbol:
ECPGconnect

The line form the testdelim.c is as follows: (i insert 'user' and
'password')
{ ECPGconnect(__LINE__, "cuervo" , "user" , "password" , NULL, 0);}
This obviously works b/c is works from the OS.

All the compiles work fine. I am able to run the exec file from the OS
prompt. The CREATE FUNCTION works fine. The problem occurs when I try to
select from the function.

cuervo=# CREATE FUNCTION testdelim(VARCHAR,VARCHAR)
cuervo-# RETURNS VARCHAR
cuervo-# AS '/usr/local/pgsql/programs/testdelim.so'
cuervo-# LANGUAGE 'C';

Anyone run into this? Able help greatly appreciated.

Rudy Laczkovich



pgsql-ports by date

Next:From: Jason TishlerDate: 2001-01-13 02:04:47
Subject: Re: Cygwin PostgreSQL CVS Patch
Previous:From: Fred YankowskiDate: 2001-01-12 19:59:51
Subject: how to shutdown postmaster as NT service?

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