From: Hiroshi Inoue <inoue@tpf.co.jp>
To: НФСР <nfsr@hitv.ru>
Cc: pgsql-odbc@postgresql.org
Subject: Re: When length of text data is 1.
Date: Tue, 07 Nov 2006 12:34:02 +0900
Message-ID: <454FFEAA.1020001@tpf.co.jp> (raw)
In-Reply-To: <015a01c6fc4f$f36164a0$39a7fea9@samatov>
References: <015a01c6fc4f$f36164a0$39a7fea9@samatov>
НФСР wrote:
> Hello,
>
> I tried to search in Internet, but didn't find answer...
> I'm using PostgreSQL 8.1.5-1, ODBC, MS Visual C++ with MFC, I'm using
> Unicode (database has UTF8 encoding and I'm using "PostgreSQL Unicode" odbc
> driver).
> I create, for example, such table:
>
> ***code***
> CREATE TABLE section (
> idsection INT PRIMARY KEY,")
> idparent INT NULL REFERENCES section ON DELETE CASCADE,")
> name TEXT NOT NULL")
> );
> **********
>
> Retrieve data thereby:
>
> ***code***
> CRecordset rcrd(&db);
> CString nm;
> ....
> rcrd.GetFieldValue(_T("name"),nm);
> **********
>
> It works without any problem except when length of 'name' is 1.
> For example, It works fine when name is 'John' but when name is 'J' line
> rcrd.GetFieldValue(_T("name"),nm);
> throws exception with empty exception message and AFAIK with return code
> SQL_NO_DATA.
Which version of ODBC driver are you using ?
Could you send me the Mylog output ?
regards,
Hiroshi Inoue
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: inoue@tpf.co.jp, nfsr@hitv.ru
Subject: Re: When length of text data is 1.
In-Reply-To: <454FFEAA.1020001@tpf.co.jp>
References: <015a01c6fc4f$f36164a0$39a7fea9@samatov> <454FFEAA.1020001@tpf.co.jp>
* 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