From: Johannes Plunien Date: Sat, 1 Nov 2008 20:37:37 +0000 (+0000) Subject: using unreserved table name for drop statements in oracle producer X-Git-Tag: v0.11008~287 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a7f999aadcc2d194644dbbad43169ff6712064c2;p=dbsrgits%2FSQL-Translator.git using unreserved table name for drop statements in oracle producer --- diff --git a/lib/SQL/Translator/Producer/Oracle.pm b/lib/SQL/Translator/Producer/Oracle.pm index 3aeb641..b02d50a 100644 --- a/lib/SQL/Translator/Producer/Oracle.pm +++ b/lib/SQL/Translator/Producer/Oracle.pm @@ -213,11 +213,11 @@ sub create_table { my $drop; my (@create, @field_defs, @constraint_defs, @fk_defs, @trigger_defs); - push @create, "--\n-- Table: $table_name\n--" unless $options->{no_comments}; - push @create, qq[DROP TABLE $table_name CASCADE CONSTRAINTS] if $options->{add_drop_table}; - my $table_name_ur = unreserve($table_name) or next; + push @create, "--\n-- Table: $table_name_ur\n--" unless $options->{no_comments}; + push @create, qq[DROP TABLE $table_name_ur CASCADE CONSTRAINTS] if $options->{add_drop_table}; + my ( %field_name_scope, @field_comments ); for my $field ( $table->get_fields ) { my ($field_create, $field_defs, $trigger_defs, $field_comments) =