MySQL Forums
Forum List  »  Connector/C++

How to read column of type SET
Posted by: Martin Kupke
Date: October 13, 2009 11:27AM

Hi,

i'm using the C++ class and got the recordset. Now i can read the columns by calling the getString method for all colums (e.g. VARCHAR, INT), but if trying to do so with a column of type SET (runner, swimmer, etc.) it crashes (really crash, no exception).

How to retrieve the value/text from a column of type SET?
In my table there are persons for different kinds of sport, someone is a runner, the other is a swimmer. It's even possible that someone is runner and swimmer in one person, so i decided to use a column of type SET.

I already tried the getUint64 and getInt methods, they don't crash, but they deliver always the value 0 (zero).

Additionally i've to say that i'm working with the older VisualStudio Version 7.1 "Microsoft Development Environment 2003".

What's my fault?

Thanks in advance,
Martin...



Edited 1 time(s). Last edit at 10/13/2009 11:50AM by Martin Kupke.

Options: ReplyQuote


Subject
Views
Written By
Posted
How to read column of type SET
5472
October 13, 2009 11:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.