House of Fusion
Home of the ColdFusion Community
Hostmysite VPS Hosting

Search cf-talk

July 19, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Subscribe Now
Fusion Authority Quarterly Update - ColdFusion 8 Special Edition

For ColdFusion hosting try HostMySite.com.
Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

cfqueryparam maxlength

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Richard White
05/17/2008 05:13 AM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Adrian Lynch
05/17/2008 03:06 PM

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/ 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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Richard White
05/17/2008 04:52 PM

>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. your absolutely right, i had a space - which brought me to an error in another part of my code!!! thanks very much adrian


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists