<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-AU link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>All good guys!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks heaps for your help.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
fREW Schmidt [mailto:frioux@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, 11 August 2009 1:50
PM<br>
<b><span style='font-weight:bold'>To:</span></b> DBIx::Class user and developer
list<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Dbix-class]
Constructing &quot;WHERE&quot; clause in DBIx</span></font><span lang=EN-US><o:p></o:p></span></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Yeah,
that's gonna need to be <o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>-or =&gt;
[ ... ]<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>And I
don't think the -and is needed.<o:p></o:p></span></font></p>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt' type=cite>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>On Aug 10, 2009 8:58 PM,
&quot;Rob Kinyon&quot; &lt;<a href="mailto:rob.kinyon@gmail.com">rob.kinyon@gmail.com</a>&gt;
wrote:<o:p></o:p></span></font></p>

<p><font size=3 color="#500050" face="Times New Roman"><span style='font-size:
12.0pt;color:#500050'>On Mon, Aug 10, 2009 at 19:42, Eric Wee&lt;<a
href="mailto:EWee@au.westfield.com">EWee@au.westfield.com</a>&gt; wrote: &gt;
$c-&gt;model(DB::Client)-&gt;searc...</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>This should do the trick. Peter will chime in with corrections as
needed.<o:p></o:p></span></font></p>

<p><font size=3 color="#500050" face="Times New Roman"><span style='font-size:
12.0pt;color:#500050'>-&gt;search({ is_retail =&gt; '1', enabled_date =&gt; {
'!=' =&gt; undef }, </span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp; &nbsp;enabled_date =&gt; { '&lt;' =&gt; \'NOW()' },<br>
&nbsp; &nbsp;-and =&gt; {<br>
&nbsp; &nbsp; &nbsp; &nbsp;-or =&gt; {<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;disabled_date =&gt; undef,<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;disabled_date =&gt; { '&lt;' =&gt;
'enabled_date' },<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;disabled_date =&gt; { '&gt;' =&gt;
\'NOW()', }<br>
&nbsp; &nbsp; &nbsp; &nbsp;},<br>
&nbsp; &nbsp;},<br>
});<br>
<br>
The scalarref is important for NOW() otherwise it won't work.<br>
<font color="#888888"><span style='color:#888888'><br>
Rob<br>
</span></font><br>
_______________________________________________<br>
List: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class"
target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class</a><br>
IRC: <a href="http://irc.perl.org#dbix-class" target="_blank">irc.perl.org#dbix-class</a><br>
SVN: <a href="http://dev.catalyst.perl.org/repos/bast/DBIx-Class/"
target="_blank">http://dev.catalyst.perl.org/repos/bast/DBIx-Class/</a><br>
Searchable Archive: <a
href="http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk"
target="_blank">http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk</a><o:p></o:p></span></font></p>

</blockquote>

</div>


<BR>
______________________________________________________<BR>
    CONFIDENTIALITY NOTICE    <BR>
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).<BR>
______________________________________________________<BR>
</body>

</html>