pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John C. Frickson <john@frickson.us>
To: pgsql-odbc@postgresql.org
Subject: Query buffer allocate error in copy_statement_with_parameters
Date: Thu, 22 May 2014 12:55:19 -0500
Message-ID: <1400781319.3209.15.camel@server.frickson.pvt> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

I'm getting the error message "Query buffer allocate error in
copy_statement_with_parameters" when calling a function with a
parameter.

The very simple function was created like this:

	CREATE OR REPLACE FUNCTION pvsystem.spclearloginfails
		(_seconds integer)
	RETURNS void AS $$
	BEGIN
	  DELETE FROM LoginFails WHERE extract(epoch FROM NOW()) -
		extract(epoch FROM LastFail) > _seconds;
	END;
	$$
	LANGUAGE 'plpgsql' VOLATILE CALLED ON NULL INPUT
	SECURITY DEFINER COST 100;

Calling SQLPrepare() works fine. Calling SQLDescribeParam() works fine.
Calling SQLBindParameter() works fine.
SQLExecute returns the above error.

The data buffer for the parameter is 10 bytes long. The contents are
"300" followed by nulls. length_or_ind is 3.

Doesn't seem like there's very much that can go wrong here.

The server is version 9.2.7 and the ODBC driver is version 08.03.0200.
Running on OpenSUSE 13.1.

Thanks!
John




-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (3+ messages)  latest in thread

Message-ID: <1400781319.3209.15.camel@server.frickson.pvt>
Permalink:  ../1400781319.3209.15.camel@server.frickson.pvt/
Also on:    postgresql.org/message-id/1400781319.3209.15.camel@server.frickson.pvt

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: john@frickson.us
  Subject: Re: Query buffer allocate error in copy_statement_with_parameters
  In-Reply-To: <1400781319.3209.15.camel@server.frickson.pvt>
  References: <1400781319.3209.15.camel@server.frickson.pvt>

* 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