I do not think it is hard to check for empty values on a column that should contain a value. If you know you have a column that has a default value, then why not check to see if the returned record is empty?
I am going to check for the exists() method later. If the exists() method is present, I would just call it. If it does not, I would probably add this method to my best practices and always add it to my customizeable objects.
On 5/30/06, Tom Chiverton <[EMAIL PROTECTED]> wrote:
On Monday 29 May 2006 23:55, Chris Blackwell wrote:
> FWIW I'd prefer to see an error thrown if you attempt to load a record
> that does not exist.
I wasn't asking for it, just asking what happened :-)
IMVHO doing nothing when an error (record not found) occurs isn't good.
Either an error should be thrown, an extra column ('recordWasFound' ?) tacked
on the result or something else.
> If you want to create a blank record with createRecord() that's fine,
> but when you try to load data into that record and no matching primary
> key is found then that should be an error.
Yup, it's a run time fault.
--
Tom Chiverton
****************************************************
This email is sent for and on behalf of Halliwells LLP.
Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society.
CONFIDENTIALITY
This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008.
For more information about Halliwells LLP visit www.halliwells.com.
We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards
-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/
--
<cf_payne />
-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

