From 33aa71dbc113342361b6872e9587945bbcfe88a3 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 30 Jun 2002 07:16:29 +0000 Subject: [PATCH] get rid of unneeded Pg-cruft (don't use native Pg money type) --- FS/FS/Record.pm | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 5fa0a466a..3404a67fe 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -132,15 +132,8 @@ sub new { my $hashref = $self->{'Hash'} = shift; - foreach my $field ( $self->fields ) { - $hashref->{$field}='' unless defined $hashref->{$field}; - #trim the '$' and ',' from money fields for Pg (belong HERE?) - #(what about Pg i18n?) - if ( driver_name =~ /^Pg$/i - && $self->dbdef_table->column($field)->type eq 'money' ) { - ${$hashref}{$field} =~ s/^\$//; - ${$hashref}{$field} =~ s/\,//; - } + foreach my $field ( grep defined($hashref->{$_}), $self->fields ) { + $hashref->{$field}=''; } $self->_cache($hashref, shift) if $self->can('_cache') && @_; -- 2.11.0