I
Ingo R. Homann
Hi,
I'm using the CSV/JDBC-driver mentioned above. It works, but I've got a
problem with spaces. Consider the following (human-readable) table:
name ;surname
Homann;Ingo
Smith ;John
When reading the fields, the spaces are returned as well, that means, I
will get "Smith ". This can be solved by calling trim() on the String,
but even worse, when I try to read the column, rs.getString("name")
fails because rs.getString("name ") would be 'correct'.
So, my question is, is there a property I can set to avoid this? (I
didn't find any apropriate docu.)
Or does someone know a different driver that can deal with this problem?
Ciao,
Ingo
I'm using the CSV/JDBC-driver mentioned above. It works, but I've got a
problem with spaces. Consider the following (human-readable) table:
name ;surname
Homann;Ingo
Smith ;John
When reading the fields, the spaces are returned as well, that means, I
will get "Smith ". This can be solved by calling trim() on the String,
but even worse, when I try to read the column, rs.getString("name")
fails because rs.getString("name ") would be 'correct'.
So, my question is, is there a property I can set to avoid this? (I
didn't find any apropriate docu.)
Or does someone know a different driver that can deal with this problem?
Ciao,
Ingo