From: Peter Rabbitson Date: Mon, 4 May 2009 08:13:51 +0000 (+0000) Subject: Variable table and column names? wtf?! X-Git-Tag: v0.11008~163^2~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=912e67a1070197c01e8581c2d67ad433508b6b32;p=dbsrgits%2FSQL-Translator.git Variable table and column names? wtf?! --- diff --git a/lib/SQL/Translator/Producer/PostgreSQL.pm b/lib/SQL/Translator/Producer/PostgreSQL.pm index 3e4b2d4..3417540 100644 --- a/lib/SQL/Translator/Producer/PostgreSQL.pm +++ b/lib/SQL/Translator/Producer/PostgreSQL.pm @@ -329,7 +329,6 @@ sub create_table my $postgres_version = $options->{postgres_version} || 0; my $table_name = $table->name or next; - $table_name = mk_name( $table_name, '', undef, 1 ); my ( $fql_tbl_name ) = ( $table_name =~ s/\W(.*)$// ) ? $1 : q{}; my $table_name_ur = $qt ? $table_name : $fql_tbl_name ? join('.', $table_name, unreserve($fql_tbl_name)) @@ -476,9 +475,7 @@ sub create_view { my $type_drops = $options->{type_drops} || []; $field_name_scope{$table_name} ||= {}; - my $field_name = mk_name( - $field->name, '', $field_name_scope{$table_name}, 1 - ); + my $field_name = $field->name; my $field_name_ur = $qf ? $field_name : unreserve($field_name, $table_name ); $field->name($field_name_ur); my $field_comments = $field->comments