X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 105FB9FA5CE for ; Tue, 13 Jun 2006 22:58:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 63313-09 for ; Tue, 13 Jun 2006 22:58:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id C80009FA38F for ; Tue, 13 Jun 2006 22:58:16 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k5E1wDq5018724; Tue, 13 Jun 2006 21:58:13 -0400 (EDT) To: "Rommel the iCeMAn" cc: "PostgreSQL SQL Mailing List" Subject: Re: Error with "limit" clause In-reply-to: <000001c68f3f$d90198f0$1264a8c0@theport.com> References: <000001c68f3f$d90198f0$1264a8c0@theport.com> Comments: In-reply-to "Rommel the iCeMAn" message dated "Tue, 13 Jun 2006 19:19:33 -0400" Date: Tue, 13 Jun 2006 21:58:13 -0400 Message-ID: <18723.1150250293@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/144 X-Sequence-Number: 25380 "Rommel the iCeMAn" 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