Rajesh, Your choices are: 1) Use a different driver - probably not practical for you 2) Return the column twice in the select clause - this is inefficient 3) Try using getString("name") - probably has same issue 4) Store as local variable as Sunil suggested
I recommend going with choice #4. It protects you against any other driver oddities that may arise.
What is the reason you don't want a local variable? JDBC is very closely tied to Java anyway.