Hello;
I have a mysql++ question... I'm not sure if this is  right list to post to.
Well, I just upgraded mysql++ from version 1.7.9 to 1.7.17.
Now, my problem is I don't seem to be getting the collect data from a table.

I have an order table with the following cols: LastName, FirstName, OrderDate.

Initially to get the data after storing the Result from a select to rs I would do something like this...
if (rs.begin() != rs.end())
{
row = *(rs.begin());
1. Glib::ustring lastname = row["LastName"];
2. Glib::ustring lastname = row["FirstName"];
3. Glib::Date orderdate ((Glib::ustring) row["OrderDate"]);
}
Then, this data is displayed on an UI...
line 1 and 2 displays an 'a'
That means in all the three cols after the upgrade I'm getting bad data... and the compliler is complaining about line 3 as well.
Here is the snip of my makefile.am


CXX = ccache g++

INCLUDES =\
$(GTKMM_CFLAGS)\
   -I/usr/include/libglademm-2.0 \
   -I/usr/include/sqlplus \
   -I/usr/local/include/mysql \
   -I/usr/include/cc++2 \
   -I/usr/include/pcre \
   -I./orders

CXXFLAGS =\
   -Wno-deprecated\
    -Wall -Wimplicit -Wunused -Wmissing-prototypes\
    -g -O0

...

order_LDADD = \
   $(GTKMM_LIBS)\
    -lglademm-2.0 \
    -lxml2 \
    -lmysqlclient \
    -lmysqlpp
...
...
Any help and/ or suggestion is highly  appreciated

kinyash


-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to