Subject: | Unable to translate from DBI-Sybase to MySQL |
Using: p5-SQL-Translator-0.05_1, freetds-0.62.3
Perl version: 5.8.5
OS: FreeBSD 4.10
Attempts to convert from DBI-Sybase to MySQL ends in failure
Example:
bash$ sqlt -debug -f DBI --dsn "dbi:Sybase:database=xpancex" --db-user sa --db-password xpance -t MySQL
[SQL::Translator] Got parser: code ref
[SQL::Translator] Got producer: code ref
[SQL::Translator] Got parser: SQL::Translator::Parser::DBI
[SQL::Translator] Got producer: SQL::Translator::Producer::MySQL
Setting of CS_OPT_TEXTSIZE failed. at /usr/local/lib/perl5/site_perl/5.8.5/mach/DBI.pm line 634.
setting dbh attribute {FetchHashKeyName} to NAME_uc at /usr/local/lib/perl5/site_perl/5.8.5/SQL/Translator/Parser/DBI/Sybase.pm line 53.
setting dbh attribute {ChopBlanks} to 1 at /usr/local/lib/perl5/site_perl/5.8.5/SQL/Translator/Parser/DBI/Sybase.pm line 58.
Error: translate: Error with parser 'SQL::Translator::Parser::DBI': DBI column_info: invalid number of arguments: got handle + 0, expected handle + between 4 and 5
Usage: $h->column_info($catalog, $schema, $table, $column [, \%attr ]) at /usr/local/lib/perl5/site_perl/5.8.5/SQL/Translator/Parser/DBI/Sybase.pm line 72.