12 messages in com.mysql.lists.plusplusproblem on operator[] of class Row
FromSent OnAttachments
Cableguy21 Apr 2005 03:11 
Chris Frey21 Apr 2005 04:18 
Warren Young21 Apr 2005 06:14 
Cableguy21 Apr 2005 06:33 
Warren Young21 Apr 2005 08:22 
Cableguy23 Apr 2005 02:58 
Cableguy23 Apr 2005 02:58 
Chris Frey23 Apr 2005 12:44 
Chris Frey23 Apr 2005 13:13 
Cableguy23 Apr 2005 13:20 
Tommy Tang25 Apr 2005 01:31 
Warren Young25 Apr 2005 04:18 
Subject:problem on operator[] of class Row
From:Tommy Tang (tom@vlinetech.com)
Date:04/25/2005 01:31:21 AM
List:com.mysql.lists.plusplus

Hi, Dear all:

I have downloaded mysql++1.7.9 from www.mysql.com/downloads/api-mysql++.html
and patched it with omnibus-gcc-3.3.patch.gz and then built and installed.
Everything is OK for building, but after I building my application using mysql++
api and run the application, I find that the operator[] of class Row has the
following problem: Using the the field name instead of field index to retrieve
the field value is not right. For example:

dwUserID = row["UserID"], dwUserID always gets 115(in fact, any other field is
also 115)

but with the following statement, everything is OK:

dwUserID=row[0]

What's the matter? Is there any other patch needing to be installed?

Best Regard! Yours Sincerely Tommy