In this case why not just CAST the integer column to a varchar in the original (from-DB) query? Seems a lot easier than getting MM to add a new function :)
Kam -----Original Message----- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Thursday, February 10, 2005 6:36 AM To: CF-Talk Subject: Re: New CF7 feature request - please support it - Casting query columns You can use CAST in QofQ now. So, you could use QofQ to recard the column to varchar. You could also simply make a duplicate of your ID column when performing your select and cast that as varchar. Or do queryAddColumn and put the data there. On Thu, 10 Feb 2005 12:17:26 -0000, Martin Parry <[EMAIL PROTECTED]> wrote: > I have today posted a feature request on MM's website.. If anyone else > agrees with it and would us it please also request it. > > Due to changes in the way CF7 handles casting on queries, I can no > longer populate a string value into an integer column using <cfset > QuerySetCell(....)>. Assuming I had a unique_id of 21014 I may want to > prefix this with PID_ - I now get a manky error - Invalid data > PID_21014 for CFSQLTYPE CF_SQL_INTEGER. > > A <cfset QueryCastColumn(myQuery, "columnName", "cf_sql_varchar")> > would be a real bonus as I'm now needing to kludge around this. > > Post it on... http://www.macromedia.com/support/email/wishform/ > > Martin Parry > Macromedia Certified Developer > http://www.BeetrootStreet.co.uk > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194086 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

