[Dbix-class] Constructing "WHERE" clause in DBIx
Eric Wee
EWee at au.westfield.com
Mon Aug 10 06:46:34 GMT 2009
Hi there,
I'm trying to construct the following "where" clause in DBIx but not
sure how to do so.
WHERE
is_retail = '1'
AND enabled_date is not null
AND enabled_date < now()
AND (disabled_date is null
OR disabled_date < enabled_date
OR disabled_date > now())
Any help would be much appreciated.
Best regards,
Eric
______________________________________________________
CONFIDENTIALITY NOTICE
This electronic mail message, including any and/or all attachments, is for the sole use of the intended recipient(s), and may contain confidential and/or privileged information, pertaining to business conducted under the direction and supervision of the sending organization. All electronic mail messages, which may have been established as expressed views and/or opinions (stated either within the electronic mail message or any of its attachments), are left to the sole responsibility of that of the sender, and are not necessarily attributed to the sending organization. Unauthorized interception, review, use, disclosure or distribution of any such information contained within this electronic mail message and/or its attachment(s), is (are) strictly prohibited. If you are not the intended recipient, please contact the sender by replying to this electronic mail message, along with the destruction all copies of the original electronic mail message (along with any attachments).
______________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20090810/20bdc48e/attachment.htm
More information about the DBIx-Class
mailing list