pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: G. van Wieringen <wieri420@planet.nl>
To: pgsql-interfaces@postgresql.org
Subject: Borland PQexec error in Windows XP
Date: Tue, 22 Jun 2004 23:57:34 +0200
Message-ID: <000f01c458a3$ecb3dae0$5201a8c0@ggvw> (raw)

Hi all!

Just started my first borland+postgres project and within 5 minutes I found
the following problem:

This piece of code:
    char query[]  =
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
    res = PQexec(handle, query );
Gives me, as it should,  this error message:
ERROR: syntax error at or near
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" at
character 1

But this piece of code:
    char query[]  =
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
    res = PQexec(handle, query );

Gives me this Debugger Exeption Notification:
"Project Project1.exe raised exeption class EAccessViolation with message
'Access violation at address 32665A50 in module 'CC3260MT.DLL'. Read of
address F840C228'. Process stopped. Use Step or Run to continue."

Note that the first query is just 1 'a' shorter and it does not give the
Debugger Exeption.
Is it possible that PQexec or CC3260MT.DLL can not handle queries that begin
with more than 64 characters?

When I enter the query in psql (linux) on the database machine itelf, it
gives the notice:
NOTICE:  identifier "stringwithmorethan64chars" will be truncated to
"stringwith64chars"
(of course, the text between double quotes is not a part of the actual error
message )

I am using Borland C++ Builder 6 with libpq (compiled with borland from
postgres 7.4.3) under Windows XP.

All help is welcome!

G. van Wieringen
wieri420@planet.nl




view thread (5+ messages)  latest in thread

Message-ID: <000f01c458a3$ecb3dae0$5201a8c0@ggvw>
Permalink:  ../000f01c458a3$ecb3dae0$5201a8c0@ggvw/
Also on:    postgresql.org/message-id/000f01c458a3$ecb3dae0$5201a8c0@ggvw

 · 

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-interfaces@postgresql.org
  Cc: wieri420@planet.nl
  Subject: Re: Borland PQexec error in Windows XP
  In-Reply-To: <000f01c458a3$ecb3dae0$5201a8c0@ggvw>

* 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