X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 04170D1B53F for ; Tue, 28 Oct 2003 18:47:23 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 45441-01 for ; Tue, 28 Oct 2003 14:46:52 -0400 (AST) Received: from mail.epost.de (unknown [193.28.100.167]) by svr1.postgresql.org (Postfix) with ESMTP id 61540D1B538 for ; Tue, 28 Oct 2003 14:46:49 -0400 (AST) Received: from seneca.benny.turtle-trading.net.epost.de (193.99.153.30) by mail.epost.de (6.7.015) id 3F9E92E800004F4E for pgsql-odbc@postgresql.org; Tue, 28 Oct 2003 19:46:48 +0100 To: pgsql-odbc@postgresql.org Subject: [Repost] Problem with SQLColAttributes(SQL_COLUMN_DISPLAY_SIZE) References: From: Benjamin Riefenstahl Date: Tue, 28 Oct 2003 19:45:51 +0100 In-Reply-To: (Benjamin Riefenstahl's message of "Tue, 21 Oct 2003 21:36:24 +0200") Message-ID: User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/85 X-Sequence-Number: 3398 Hi all, Is nobody interested in this bug? Or maybe it isn't a bug and I am just misunderstanding something? "Is there anybody out there?" ;-) Benjamin Riefenstahl writes: > The symptom is that the expression "SELECT COUNT(*) FROM anytable" > returns an empty string. Actually the same happens with any > aggregate function that I have tried. > > Delving into the C source of the ODBC wrapper I am using, I find > that this function call > > rc = SQLColAttributes(stmt, col, SQL_COLUMN_DISPLAY_SIZE, > NULL, 0, NULL, &cbValueMax); > > puts 0 into "cbValueMax". benny