Re: You have an error in your SQL syntax near '' at line 1 - Mailing list pgsql-sql

From Josh Berkus
Subject Re: You have an error in your SQL syntax near '' at line 1
Date
Msg-id web-85497@davinci.ethosmedia.com
Whole thread Raw
In response to You have an error in your SQL syntax near '' at line 1  ("Ari Nepon" <anepon@verveinternet.com>)
List pgsql-sql
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
informationtechnology      josh@agliodbs.com  and data management solutions       (415) 565-7293 for law firms, small
businesses       fax 621-2533   and non-profit organizations.      San Francisco
 


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] No subselects in constraint (bug?)
Next
From: "Joe Conway"
Date:
Subject: Re: How can we match a condition among 2 diff. tables?