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 2 2588
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
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]
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Julius Mong |
last post by:
Hi all, I'm doing this:
// Test char code
wchar_t lookup = {0x8364, 0x5543, 0x3432, 0xabcd, 0xef01};
for (int x=0; x<5; x++) {
wchar_t * string = (wchar_t*) malloc(sizeof(wchar_t));
string =...
|
by: Johnny Google |
last post by:
Here is an example of the type of data from a file I will have:
Apple,4322,3435,4653,6543,4652
Banana,6934,5423,6753,6531
Carrot,3454,4534,3434,1111,9120,5453
Cheese,4411,5522,6622,6641
The...
|
by: Steve - DND |
last post by:
We are continually receiving timeout, and "Unable to
write data to the transport connection" errors while using the
System.Net.HttpWebRequest class from an ASP.Net web page. Below are the two...
|
by: PRiya |
last post by:
Hi,
The common examples provided under "Pro*C/C++ Programming with
Unicode" is
#include <sqlca.h>
main()
{
...
/* Change to STRING datatype: */
EXEC ORACLE OPTION (CHAR_MAP=STRING) ;
|
by: den 2005 |
last post by:
Hi everyone,
Here is code working on..Trying to insert record with a column with Image
or VarBinary datatype in sql database from a existing jpeg image file, then
retrieve this image from...
|
by: whidbey |
last post by:
Hello friends, I am whidbey, new to thescripts and dot net as well.I am working over Online Shopping Cart,web application.I design a page (webform5.aspx) where user search books then select the books...
|
by: whidbey |
last post by:
Hello friends, I am whidbey, new to thescripts and dot net as well.I am working over Online Shopping Cart,web application.I design a page (webform5.aspx) where user search books then select the books...
|
by: =?ISO-8859-2?Q?Boris_Du=B9ek?= |
last post by:
Hi,
I have an API that returns UTF-8 encoded strings. I have a utf8 codevt
facet available to do the conversion from UTF-8 to wchar_t encoding
defined by the platform. I have no trouble...
|
by: lifeisgreat20009 |
last post by:
I am a newbie to Struts and JSP...I have been working on the code below for 5 hours now..I googled a lot but couldn't get much help so finally I am here.. Hoping of getting my problem solved. Please...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |