[fpc-pascal] Trim db-fieldnames, or not?
Joost van der Sluis
joost at cnoc.nl
Sat Apr 19 20:10:23 CEST 2008
Op vrijdag 18-04-2008 om 22:06 uur [tijdzone +0200], schreef Michael Van
Canneyt:
>
> On Fri, 18 Apr 2008, Joost van der Sluis wrote:
>
> > Hi all,
> >
> > In several places you can specify a list of fieldnames, seperated by
> > semicolons. For example: 'field1;field2'. Question is: should this be
> > allowed: 'field1; field2'? Or should a "Field not found: ' field2'"
> > exception occur? (Note the space)
> >
> > Ie: should I add a trim(fieldname) to the code, or not? What do you guys
> > think?
>
> IMHO, no trimming should be added, because databases can have fields
> with spaces. Weird, but true.
Not at the begin or end, I hope?
Joosg
More information about the fpc-pascal
mailing list