X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6C5F39FB366 for ; Fri, 22 Sep 2006 04:19:07 -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 25871-01 for ; Fri, 22 Sep 2006 04:18:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 9C7B89FB354 for ; Fri, 22 Sep 2006 04:18:58 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 85F2130E02; Fri, 22 Sep 2006 09:18:57 +0200 (MET DST) From: "Dmitriy Ivanov" X-Newsgroups: pgsql.interfaces.odbc Subject: Re: Q: Buffer size for SQL_DOUBLE to SQL_C_CHAR conversion Date: Fri, 22 Sep 2006 09:43:43 +0400 Organization: Ystok-Systema Lines: 19 Message-ID: References: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Comment-To: Dmitriy Ivanov To: pgsql-odbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200609/88 X-Sequence-Number: 8239 I wrote: DI> |...snip...| DI> This length is exceeds 15, the decimal precision returned by DI> SQLGetTypeInfo(hstmt,SQL_DOUBLE). DI> DI> What is the maximum size of the character buffer I have to DI> allocate? After diving into MSDN, just answering myself: the display size should come to play. Sorry for the noise. -- Sincerely, Dmitriy Ivanov Common Lisp ODBC interface - lisp.ystok.ru/ysql.html