RE: default for numeric argument

2010-04-05 Thread Andy Matthews
Yes. -Original Message- From: Matthew Smith [mailto:chedders...@gmail.com] Sent: Monday, April 05, 2010 9:10 AM To: cf-talk Subject: default for numeric argument cfargument name=app_user_id type=numeric required=no default= I am not passing it in. I am getting: The APP_USER_ID

Re: default for numeric argument

2010-04-05 Thread Eric Cobb
yep. thanks, eric cobb http://www.cfgears.com Matthew Smith wrote: cfargument name=app_user_id type=numeric required=no default= I am not passing it in. I am getting: The APP_USER_ID argument passed to the check_item_quantities function is not of type numeric. Should I make the

re: default for numeric argument

2010-04-05 Thread Jason Fisher
Well, depends on what your data needs to be. Sometimes 0 is not the same as no answer given. If you're allowing NULL in that data column and NULL means something different than 0, then you will want to *not* use default=0. Often in those cases, I do something like the following, where I set