DBD::mysql::AutoTypes - automatically assign parameters' sql type to support old DBD::mysql functionality


DBD-mysql-AutoTypes documentation  | view source Contained in the DBD-mysql-AutoTypes distribution.

Index


NAME

Top

DBD::mysql::AutoTypes -- automatically assign parameters' sql type to support old DBD::mysql functionality

SYNOPSIS

Top

 use DBI;
 use DBD::mysql::AutoTypes;

 my $dbh = DBI->connect('DBI:mysql:...', '...', '...') and mysql_auto_types();

DESCRIPTION

Top

Since version 2.9002 DBD::mysql requires explicit sql type for query parameters. You should change the tonnes of $dbh->selectall_arrayref() to the ugly "prepare - bind - execute - fetch" pipeline.

This module is provided to solve the problem.

You have to change only two lines of code (use the module, and apply fixup after accuring database connection).

DEPENDENCIES

Top

BUGS

Top

May be...

SEE ALSO

Top

*

DBI -- Perl DataBase Interface (http://search.cpan.org/~timb/DBI/)

*

DBD::mysql -- MySQL (http://www.mysql.com) driver (http://search.cpan.org/~rudy/DBD-mysql/) and DBD::mysql ChangeLog -- look for the version 2.9002 changes (http://search.cpan.org/src/RUDY/DBD-mysql-2.9002/ChangeLog), that break old behaviour

*

Regexp::Common -- determine is data number or string

AUTHOR

Top

Greg "Grishace" Belenky <greg@webzavod.ru>

COPYRIGHT

Top


DBD-mysql-AutoTypes documentation  | view source Contained in the DBD-mysql-AutoTypes distribution.