Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6DJ1Ia27079 for ; Fri, 13 Jul 2001 15:01:18 -0400 (EDT) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.1) with HTTP id 85497; Fri, 13 Jul 2001 12:01:16 -0700 From: "Josh Berkus" Subject: Re: You have an error in your SQL syntax near '' at line 1 To: , "Pgsql-Sql" X-Mailer: CommuniGate Pro Web Mailer v.3.4.1 Date: Fri, 13 Jul 2001 12:01:16 -0700 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200107/178 X-Sequence-Number: 3973 Ari, > I keep getting this error "You have an error in your SQL syntax near > '' at > line 1" when I try to run the below query. Does anyone know what I'm > missing? Maybe some of the variables need to be in single or double > qoutes? > I tried a bunch of things, but no change. The first thing you should do is modify your program so that it outputs the query text it's actually passing to the database to a text file or stdout instead. Once you see the actual query and not a bunch of string variables, the error may jump out at you. -Josh ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco