Groups
Groups
Sign in
Groups
Groups
ColdFusion Talk
Conversations
About
Send feedback
Help
SQL Server and Nulls
12 views
Skip to first unread message
hofar...@houseoffusion.com
unread,
Apr 17, 2015, 3:58:46 PM
4/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ColdFusion Technical Talk
In an update query, to a tinyint field which allows nulls, I have the update
dbfield=#mydatefield#
If mydatefield has no value, sql is throwing an error. The field allows
nulls. I've never had to say if "" then NULL before. What the heck?
Robert Harrison
Full Stack Developer
AIMG
rhar...@aimg.com
Main Office:
704-321-1234 ext.118
Direct Line:
516-302-4345
www.aimg.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360469
hofar...@houseoffusion.com
unread,
Apr 17, 2015, 4:08:16 PM
4/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ColdFusion Technical Talk
Dbfield=<cfqueryparam value="#mydatefield#" cfsqltype="CF_SQL_TINYINT" null="#not len(mydatefield)#" />
Steve
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360470
hofar...@houseoffusion.com
unread,
Apr 17, 2015, 4:08:29 PM
4/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ColdFusion Technical Talk
dbfield = <cfqueryparam cfsqltype="cf_sql_tinyint" value="#mydatefield#"
null="#yesnoformat(mydatefield is '')#">
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360471
Reply all
Reply to author
Forward
0 new messages