From: Rommel the iCeMAn <icecrew@gmail.com>
To: PostgreSQL SQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: Error with "limit" clause
Date: Tue, 13 Jun 2006 22:37:40 -0400
Message-ID: <006801c68f5b$82a03090$1264a8c0@theport.com> (raw)
In-Reply-To: <18723.1150250293@sss.pgh.pa.us>
> 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 ...
Exactly!
This was an oversight on my part tho. I had used the following command:
MyDataReader = MyCommand.ExecuteReader(CommandBehavior.SingleRow)
By passing the "CommandBehavior.SingleRow" parameter VB inserted the "limit
1" clause unknown to me. The solution was easy, either explicitly state
"limit 1" in my SQL query OR use the CommandBehavior.SingleRow parameter -
NOT BOTH :-)
Thanks for the input,
Rommel Edwards.
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: icecrew@gmail.com
Subject: Re: Error with "limit" clause
In-Reply-To: <006801c68f5b$82a03090$1264a8c0@theport.com>
* 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