X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1D2E8D1B1C8 for ; Tue, 22 Jun 2004 18:57:41 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19440-02 for ; Tue, 22 Jun 2004 21:57:38 +0000 (GMT) Received: from smtp17.wxs.nl (smtp17.wxs.nl [195.121.6.13]) by svr1.postgresql.org (Postfix) with ESMTP id 18183D1B1BC for ; Tue, 22 Jun 2004 18:57:32 -0300 (ADT) Received: from ggvw (ipd50a304d.speed.planet.nl [213.10.48.77]) by smtp17.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with SMTP id <0HZQ00KSRCZY4M@smtp17.wxs.nl> for pgsql-interfaces@postgresql.org; Tue, 22 Jun 2004 23:57:34 +0200 (CEST) Date: Tue, 22 Jun 2004 23:57:34 +0200 From: "G. van Wieringen" Subject: Borland PQexec error in Windows XP To: pgsql-interfaces@postgresql.org Message-id: <000f01c458a3$ecb3dae0$5201a8c0@ggvw> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2739.300 X-Mailer: Microsoft Outlook Express 6.00.2720.3000 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.9 tagged_above=0.0 required=5.0 tests=FROM_ENDS_IN_NUMS, MAILTO_TO_SPAM_ADDR X-Spam-Level: * X-Archive-Number: 200406/53 X-Sequence-Number: 4981 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