Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WnXDC-0008Pf-1Y for pgsql-odbc@arkaria.postgresql.org; Thu, 22 May 2014 17:55:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WnXDB-0001dd-FC for pgsql-odbc@arkaria.postgresql.org; Thu, 22 May 2014 17:55:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WnXDA-0001b0-Bx for pgsql-odbc@postgresql.org; Thu, 22 May 2014 17:55:24 +0000 Received: from 173-11-38-134-minnesota.hfc.comcastbusiness.net ([173.11.38.134] helo=johnspc.frickson.pvt) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WnXD7-000520-0b for pgsql-odbc@postgresql.org; Thu, 22 May 2014 17:55:22 +0000 Received: from [173.11.38.132] (173-11-38-132-Minnesota.hfc.comcastbusiness.net [173.11.38.132]) by johnspc.frickson.pvt (Postfix) with ESMTP id 4B5D82860CF3 for ; Thu, 22 May 2014 12:55:19 -0500 (CDT) Message-ID: <1400781319.3209.15.camel@server.frickson.pvt> Subject: Query buffer allocate error in copy_statement_with_parameters From: "John C. Frickson" To: pgsql-odbc@postgresql.org Date: Thu, 22 May 2014 12:55:19 -0500 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.0 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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