pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Boergesson, Cheryl <Cheryl.Boergesson@gdit.com>
To: pgsql-sql@postgresql.org
Date: Wed, 17 Oct 2007 14:49:37 -0400
Message-ID: <258593F548C79D4AB7CBA2AE72DEBEC803D0D5B6@HQ-EXVS02.anteon.com> (raw)

Hello.  I am trying to upgrade from PostgreSQL 8.0.3 to PostgreSQL
8.1.10.  I have a very simple routine that works fine with the 8.0.3
version:

 

int easy_connect()

{

exec sql connect to my_db as my_cnxtn;

printf ("connection results:\n");

printf ("code: %d\n", sqlca.sqlcode);

printf ("state: %s\n", sqlca.sqlstate);

printf ("warn: %s\n", sqlca.sqlwarn);

exec sql begin work;

exec sql commit work;

return 0;

}

 

When I use the 8.1.10 version, the connection works ( sqlca.sqlcode is
0, sqlca.sqlstate is 0000 and sqlca.sqlwarn is blank).  But it then
crashes on the "exec sql begin work" line.

 

I get the following error in a window:

 

Runtime Error!

 

Program: C:\testSQL.exe

 

This application has requested the Runtime to terminate it in an unusual
way.

Please contact the application's support team for more information.

 

I removed the 8.0.3 version using "remove program" from the control
panel.  I then went and removed my C:\Program Files\PostgreSQL\8.0
folder, just to make sure I was not including the wrong header files,
linking to the wrong libraries, or calling the wrong version of
ecpg.exe.

 

Thanks for any help.

-Cheryl

 

Message-ID: <258593F548C79D4AB7CBA2AE72DEBEC803D0D5B6@HQ-EXVS02.anteon.com>
Permalink:  ../258593F548C79D4AB7CBA2AE72DEBEC803D0D5B6@HQ-EXVS02.anteon.com/
Also on:    postgresql.org/message-id/258593F548C79D4AB7CBA2AE72DEBEC803D0D5B6@HQ-EXVS02.anteon.com

 · 

reply

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-sql@postgresql.org
  Cc: Cheryl.Boergesson@gdit.com
  Subject: Re: 
  In-Reply-To: <258593F548C79D4AB7CBA2AE72DEBEC803D0D5B6@HQ-EXVS02.anteon.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