470,594 Members | 1,137 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

Unable to retrieve VARCHAR data in wchar_t buffer

Hello all,
My database has a single table with a single column of the type
VARCHAR(20). I insert one record into this table through the command
line and then I try to retrieve this record through ODBC API.

I bind a wchar_t structure to this column with the type as SQL_C_WCHAR
using SQLBindCol. But when SQLFetchScroll returns, the buffer is still
empty.

I am trying this on Redhat Linux 9.0 with unixODBC-2.2.3-6,
MyODBC-3.51.09 and MySQL-server-4.0.21-0.

The exact same code works fine on Windows.

Could someone tell me what could be going wrong.

Thanks,
Raman
Jul 20 '05 #1
2 2414
Could someone please find some time to share your experience ( if any
) about this problem.

Thanks,
Raman
in*************@gmail.com (Intrepid Soldier) wrote in message news:<8b*************************@posting.google.c om>...
Hello all,
My database has a single table with a single column of the type
VARCHAR(20). I insert one record into this table through the command
line and then I try to retrieve this record through ODBC API.

I bind a wchar_t structure to this column with the type as SQL_C_WCHAR
using SQLBindCol. But when SQLFetchScroll returns, the buffer is still
empty.

I am trying this on Redhat Linux 9.0 with unixODBC-2.2.3-6,
MyODBC-3.51.09 and MySQL-server-4.0.21-0.

The exact same code works fine on Windows.

Could someone tell me what could be going wrong.

Thanks,
Raman

Jul 20 '05 #2
Did you find the solution to this problem?

Could someone please find some time to share your experience ( if any
) about this problem.

Thanks,
Raman


intrepidsoldier@gmail.com (Intrepid Soldier) wrote in message news:<8b2a4c2a.0411210244.f26eebf@posting.google.c om>...[color=blue]
> Hello all,
> My database has a single table with a single column of the type
> VARCHAR(20). I insert one record into this table through the command
> line and then I try to retrieve this record through ODBC API.
>
> I bind a wchar_t structure to this column with the type as SQL_C_WCHAR
> using SQLBindCol. But when SQLFetchScroll returns, the buffer is still
> empty.
>
> I am trying this on Redhat Linux 9.0 with unixODBC-2.2.3-6,
> MyODBC-3.51.09 and MySQL-server-4.0.21-0.
>
> The exact same code works fine on Windows.
>
> Could someone tell me what could be going wrong.
>
> Thanks,
> Raman[/color]
Apr 25 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

19 posts views Thread by Johnny Google | last post: by
1 post views Thread by PRiya | last post: by
3 posts views Thread by den 2005 | last post: by
4 posts views Thread by =?ISO-8859-2?Q?Boris_Du=B9ek?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.