I have a small problem in that I have an Access (ok, ok, crap I know) database, with tables in it within which afew fields are single character text strings i.e. simple flags
I am reading the table in question no problem, getting a populated ResultSet, and I am able to retrieve all column data that consists of numbers and long(er) strings (defined as Number and Text respectively in the table. But for some strange reason, when I try to read the column that contains the single character, the getString(int i) method of Result Set throws a wobbly and tells me there is no data, even though I have populated the field in question myself and checked to see if the data is there.
I have tried, unsuccessfully to use getByte(), but to no avail (wrong type) - is there a getChar() method in ResultSet, or something equivalent. I just can't seem to find one.
Hope you can help.
cheers
pipk :
I am reading the table in question no problem, getting a populated ResultSet, and I am able to retrieve all column data that consists of numbers and long(er) strings (defined as Number and Text respectively in the table. But for some strange reason, when I try to read the column that contains the single character, the getString(int i) method of Result Set throws a wobbly and tells me there is no data, even though I have populated the field in question myself and checked to see if the data is there.
I have tried, unsuccessfully to use getByte(), but to no avail (wrong type) - is there a getChar() method in ResultSet, or something equivalent. I just can't seem to find one.
Hope you can help.
cheers
pipk :