jdbc - Remove padding added by legacy DB2 databases on query results -


i have following setup.

'apps/reports' <---------> 'db2 connect' <------------> 'legacy db2 on as400'                `hibernate`               `native calls` 

when data retrieved application, padded spaces if length less column length. of note when running query, if where cause parameter not padded, automatically padded spaces such query retrieve same records padded , non-padded parameter.

is there way (preferably on ibm db2 connect or connection string parameter) remove whitespaces resultset?

are columns in iseries defined char()? i'm assuming so, because how char() works -- it's fixed field length, not variable field length (that's varchar for).


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -