From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rommel the iCeMAn <icecrew@gmail.com>
Cc: PostgreSQL SQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: Error with "limit" clause
Date: Tue, 13 Jun 2006 21:58:13 -0400
Message-ID: <18723.1150250293@sss.pgh.pa.us> (raw)
In-Reply-To: <000001c68f3f$d90198f0$1264a8c0@theport.com>
References: <000001c68f3f$d90198f0$1264a8c0@theport.com>
"Rommel the iCeMAn" <icecrew@gmail.com> writes:
> I've been trying the following query from VB.NET: select * from my_table
> order by column1 limit 1. This query works flawlessly when I use the
> pgAdminIII query tool, but when I run this query from VB.NET, I get the
> following error: syntax error at or near "limit". Any ideas as to the cause
> of this error? Seems to me this error is specific to the PostgreSQL .NET
> providers, what do you think?
Could VB be rewriting the query behind your back? Turn on log_statement
logging, and look in the postmaster log to see what's really being sent
to the backend ...
regards, tom lane
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: tgl@sss.pgh.pa.us, icecrew@gmail.com
Subject: Re: Error with "limit" clause
In-Reply-To: <18723.1150250293@sss.pgh.pa.us>
* 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