db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanley Bradbury <Stan.Bradb...@gmail.com>
Subject Re: Excess white space on SELECT
Date Fri, 15 Jun 2007 18:25:20 GMT
Sebastian Niezgoda wrote:
> Hello,
> I noticed that Derby does not trim any excess space on SELECT 
> statements.  I'm using iBatis to map sql to Java objects thus I am 
> forced to change my queries to trim.  Is there an easier way to do 
> this?  Is there a global setting I can use when creating/connecting to 
> Derby or something along those lines?
> Thanks,
> Sebastian 
Hi -
I'm guessing you mean 'does not trim trailing space from the data values 
returned'.  Derby should do this for VARCHAR fields but doesn't for 
fixed length datatypes.  What datatypes are you retrieving and are you 
performing conversions or concatenations in your select statements?

View raw message