1.

 

"dbs/isr_postgres.pm" dosyasında, "process_page" fonksiyonunda

 

...
push @ncol,'COALESCE($_,'0'::$coltype->{$_})';
...
 
coltype 'timestamp' olduğunda, postgresql '0' (sıfır) timestamp veri türüne cast edilmesine hata veriyor. Bu nedenle yukarıdaki kod, aşağıdaki koda çevrilebilir.
 
...
if($coltype->{$_} eq 'timestamp'){
  push @ncol,'COALESCE($_,'1970-01-01 00:00:00'::$coltype->{$_})';
}
else{
  push @ncol,'COALESCE($_,'0'::$coltype->{$_})';
}
...

 

 

2.

 

"dbs/isr_db2.pm" dosyasında, "process_page" fonksiyonunda aşağıdaki kod

 

...
if ($coltype->{$_} =~ /^TIMESTAMP$/)
        push @ncol,"CHAR($_)";
...
 
aşağıdaki koda çevrilebilir. (1inci çözümle aynı nedenden)
 
...
if ($coltype->{$_} =~ /^TIMESTAMP$/ || $coltype->{$_} =~ /^.*INT.*$/){
        push @ncol,"CHAR($_)";
...