Skip Menu |

This queue is for tickets about the SQL-Translator CPAN distribution.

Report information
The Basics
Id: 36301
Status: new
Priority: 0/
Queue: SQL-Translator

People
Owner: Nobody in particular
Requestors: jozef [...] kutej.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.09000
Fixed in: (no value)



Subject: SQL::Translator::Producer::Oracle - creating trigger for NULL timestamps
Hi, SQL::Translator::Producer::Oracle was creating trigger to set sysdate if the value was NULL even when $field->is_nullable was set. I had to change this: --- Oracle.pm.orig 2008-02-28 23:36:18.000000000 +0100 +++ Oracle.pm 2008-05-30 15:31:55.000000000 +0200 @@ -348,7 +348,7 @@ ; } - if ( lc $field->data_type eq 'timestamp' ) { + if ( (lc $field->data_type eq 'timestamp') and (!$field->is_nullable) ) { my $base_name = $table_name_ur . "_". $field_name_ur; my $trig_name = mk_name( $base_name, 'ts' ); push @trigger_defs, Regards, Jozef