http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12167

Bernardo Gonzalez Kriegel <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #30642|0                           |1
        is obsolete|                            |

--- Comment #20 from Bernardo Gonzalez Kriegel <[email protected]> ---
Created attachment 30663
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30663&action=edit
[SIGNED-oFF] Bug 12167: Made SQL even more ANSI SQL.

The comparison against '00-00-0000' is not possible under
PostgreSQL. By providing a database upgrade which replaces all
'0000-00-00' dates with NULL, this portion of the SQL query can
be removed.

Additionally, MySQL can handle CURRENT_DATE(), but PostgreSQL
barfs horribly. By removing the ()'s, it functions in both.

The NewsChannels.t specifically added an explanationdate IS NULL
case to catch what was not tested before.

TEST PLAN
---------
1) Apply patch.
2) ./installer/data/mysql/updatedatabase.pl
3) prove -v t/db_dependent/NewsChannels.t
   -- This will confirm that the modified GetNewsToDisplay
      function has not broken.

Signed-off-by: Bernardo Gonzalez Kriegel <[email protected]>

Update database runs without problem, test pass, no koha-qa errors.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to