[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[2814] addons/1.3/base/trunk/sql/modules/Util.sql



Revision: 2814
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2814&view=rev
Author:   einhverfr
Date:     2009-12-10 21:41:33 +0000 (Thu, 10 Dec 2009)

Log Message:
-----------
Adding back in missing function

Modified Paths:
--------------
    addons/1.3/base/trunk/sql/modules/Util.sql

Modified: addons/1.3/base/trunk/sql/modules/Util.sql
===================================================================
--- addons/1.3/base/trunk/sql/modules/Util.sql	2009-12-10 21:41:12 UTC (rev 2813)
+++ addons/1.3/base/trunk/sql/modules/Util.sql	2009-12-10 21:41:33 UTC (rev 2814)
@@ -58,7 +58,7 @@
 CREATE OR REPLACE FUNCTION is_same_year (in_date1 date, in_date2 date) 
 returns bool as
 $$
-
+SELECT  extract ('YEAR' from $1) = extract ('YEAR' from $2);
 $$ language sql;
 
 CREATE OR REPLACE FUNCTION is_same_month (in_date1 date, in_date2 date) 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.