Can you post the code you using? Nothing in
JDBC should be dropping white spaces, although its possible this may be a driver issue. I'd also consult the driver documentation to see if there are any parameters you can pass into the connection
string related to white space handling.