Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D24772E010C for ; Wed, 13 Feb 2008 20:18:48 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 50648-02 for ; Wed, 13 Feb 2008 20:18:45 -0400 (AST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 1376B2E0106 for ; Wed, 13 Feb 2008 20:18:44 -0400 (AST) Received: (qmail 2906 invoked from network); 14 Feb 2008 09:18:41 +0900 Received: from unknown (HELO ?127.0.0.1?) (100.0.32.195) by sd2.tpf-fw-c.co.jp with SMTP; 14 Feb 2008 09:18:41 +0900 Message-ID: <47B388D5.5040007@tpf.co.jp> Date: Thu, 14 Feb 2008 09:18:29 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: "Zubkovsky, Sergey" CC: pgsql-odbc@postgresql.org Subject: Re: timestamp as varchar(23) References: <528853D3C5ED2C4AA8990B504BA7FB850106DEFB@sol.transas.com> In-Reply-To: <528853D3C5ED2C4AA8990B504BA7FB850106DEFB@sol.transas.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.414 tagged_above=0 required=5 tests=AWL=0.413, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200802/31 X-Sequence-Number: 9383 Zubkovsky, Sergey wrote: > Hi, > > I’m trying to get some “timestamp without time zone” column’s value as a > varchar(23) value. > > The SQLBindCol() function is used for this purpose in my C++ app. > > However the result string doesn’t contain milliseconds part at all while > the real column’s value contains it ('2007-12-23 10:00:01.123' for > example). > > After SQLFetch() the result’s buffer contains '2007-12-23 10:00:01’ only. could you try the driver on testing for 8.030101 at http://www.geocities.jp/inocchichichi/psqlodbc/index.html ? regards, Hiroshi Inoue