Undoubtedly we have to trim strnigs gotten from the database but the question is WHEN. I guess to change Data class's function getRecord() is ok so instead of rv[i] = new String(buffer, offset, description[i].getLength()); it'll be rv[i] = new String(buffer, offset, description[i].getLength()).trim(); any drawback of such an approach?
I have mine in the readRecord method, not the getRecord method. But really the exact same code as you just wrote. Are you sure the code you entered isn't from the readRecord method? And yes it is quite OK Mark [ January 07, 2002: Message edited by: Mark Spritzler ]