[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[3859] trunk/LedgerSMB/PGDate.pm
- Subject: SF.net SVN: ledger-smb:[3859] trunk/LedgerSMB/PGDate.pm
- From: ..hidden..
- Date: Fri, 14 Oct 2011 05:47:14 +0000
Revision: 3859
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3859&view=rev
Author: einhverfr
Date: 2011-10-14 05:47:14 +0000 (Fri, 14 Oct 2011)
Log Message:
-----------
More work on trunk
Modified Paths:
--------------
trunk/LedgerSMB/PGDate.pm
Modified: trunk/LedgerSMB/PGDate.pm
===================================================================
--- trunk/LedgerSMB/PGDate.pm 2011-10-14 04:34:20 UTC (rev 3858)
+++ trunk/LedgerSMB/PGDate.pm 2011-10-14 05:47:14 UTC (rev 3859)
@@ -6,9 +6,19 @@
use Moose;
package LedgerSMB::PGDate;
+BEGIN {
+ use LedgerSMB::SODA;
+ LedgerSMB::SODA->register_type({sql_type => 'date',
+ perl_class => 'LedgerSMB::PGDate',
+ parse_input => 1, });
+ LedgerSMB::SODA->register_type({sql_type => 'timestamp',
+ perl_class => 'LedgerSMB::PGDate',
+ parse_input => 0, });
+}
+
=head1 SYNPOSIS
This class handles formatting and mapping between the DateTime module and
-PostgreSQL.
+PostgreSQL. It provides a handler for date and timestamp datatypes.
=head1 PROPERTIES
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.