Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: DOUGW [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.11007
Fixed in: (no value)



Subject: SQL::Translator::Parser::Sybase does not return table name
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 858
Download (untitled) / with headers
text/plain 858b
The table name is not included in the output of 'create table' statements (tried several producers): #!/usr/bin/perl use strict; use warnings; use SQL::Translator; my $t = SQL::Translator->new( debug => 0, trace => 0, no_comments => 0, show_warnings => 1, add_drop_table => 1, quote_table_names => 0, quote_field_names => 0, ); my $data; while (<DATA>) { $data .= $_; } my $output = $t->translate( from => 'Sybase', to => 'Oracle', datasource => \$data, ); print "$output\n"; __END__ create table foobar ( col1 varchar(20), col2 varchar(50) ) go # Outputs: -- -- Created by SQL::Translator::Producer::Oracle -- Created on Tue Dec 7 10:38:41 2010 -- -- -- Table: --; DROP TABLE CASCADE CONSTRAINTS; CREATE TABLE ( col1 varchar2(20), col2 varchar2(50) ); /


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.