|
Hi Folks,
My apologies for posting this again, but I’m really stuck. Reactor has been really great for my current project and saved me loads of time, but until I figure out a way of doing this, I can’t launch the site.
Basically what I want to do is:
myRecord = reactor.createRecord(“MyTable”); myRecord.setMyPK(1); myRecord.load();
myRecord.setMyCol(null); // where my ‘myCol’ is an integer database table that can be null myRecord.save();
The problem is setting the column to null. Not passing an argument throws an error, likewise does passing an empty string.
I’d really appreciate if someone could show me how to do this with reactor, or at least point me in the right direction. I’d imagine this is a fairly common database task, so someone must have tried this before.
Thanks,
Gareth
-----Original Message-----
Hi,
one of my tables has an integer column ‘myCol’ that can be NULL.
I can set this to an integer, but I’m having trouble setting it to NULL:
setMyCol() throws an error because there’s no argument passed setMyCol(“”) throws an error because the argument isn’t numeric
How can I do this using reactor?
Thanks -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
- [Reactor for CF] updating a column to NULL Gareth Cole
- RE: [Reactor for CF] updating a column to NULL Gareth Cole
- Re: [Reactor for CF] updating a column to NULL Dave Shuck
- RE: [Reactor for CF] updating a column to NULL Doug Hughes
- Re: [Reactor for CF] updating a column to NULL Tom Chiverton
- RE: [Reactor for CF] updating a column to NULL Gareth Cole
- Re: [Reactor for CF] updating a column to NULL Teddy Payne
- Re: [Reactor for CF] updating a column to NULL Peter Boughton
- Re: [Reactor for CF] updating a column to NULL Dan Vega
- Re: [Reactor for CF] updating a column to NULL Teddy Payne
- Re: [Reactor for CF] updating a column to NULL Peter Boughton
- Re: [Reactor for CF] updating a column to NULL Teddy Payne

