Menu

SQLServer and NULL's

2005-03-15
2013-03-07
  • Nobody/Anonymous

    In SQL server, if you have an expression
    where currentDate=null

    you don't get the correct response. If you put
    where currentDate is null
    you get the correct response.

    The framework is currently producing the first as part of its query, not the second.

    How can I get the framework to product the second type of condition for NULL's

    Thanks
    Saul

     
    • Richard Banks

      Richard Banks - 2005-03-15

      Add the following to your database mapping in the .XML file.

      <parameter name="ansinulls" value="true"/>

      And it will work correctly.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.