I have written a seemingly simple UDF for cleaning up data before an insert
or update statement (it trims the string, inserts null when necessary, wraps
string in single quotes if it's a char field):
cfscript
function checknull(ii,isint) {
if (isint) {
return
wierd thing, it's one thing to
escape values being spit out to the database, it's another to escape values
when feeding them to a UDF.
- Original Message -
From: Sean Daniels [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, March 22, 2002 5:06 AM
Subject: CFSCRIPT
2 matches
Mail list logo