Short of looking at it myself, I'd double check the value you're using isn't
21 in length maybe because of a space.

Above the cfqueryparam, output Len(yourValue). Or try trimming.

Adrian
http://www.adrianlynch.co.uk/

-----Original Message-----
From: Richard White [mailto:[EMAIL PROTECTED]
Sent: 17 May 2008 10:13
To: CF-Talk
Subject: cfqueryparam maxlength


hi

i have set my cfgueryparam's maxlength value to the length in the database.
for example first name in the db is varchar 20 - so when i query it i code
it to say where firstName = <cfqueryparam ... maxlength="20"..

but when i pass in a first name of exactly 20 characters, it displays an
error saying it is 20 chars long and therefore not valid. the way i have had
to get round it is to set the maxlength to 21

is this normal? am i missing something? or is there a big in the
cfqueryparam?

thanks for your help


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305561
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to