以前、紹介したDBD-Pg v1.22は怪しいかも
http://d.hatena.ne.jp/end0tknr/20081031/1225445151
以前、ActivePerl用DBD-Pgとして、DBD-Pg v1.22が提供されているurlを紹介しましたが、sqlのprepare() または execute() で失敗するケースがあるそうです。
http://www.cs.cmu.edu/~blangner/perl/dbd_pg.html
私のcolinux環境で使用している DBD-Pg v2.11.5では、このような現象がないので、ActivePerl用DBD-Pg を改めてinstallすることにしました。
theoryx5.uwinnipeg.ca からActivePerl用DBD-Pg v1.45をinstall
まず、ppm-shell.batでppmリポジトリに
http://theoryx5.uwinnipeg.ca/ppms/package.xml を追加します。
$ ppm-shell.bat ####リポジトリを追加 ppm> repo add http://theoryx5.uwinnipeg.ca/ppms/package.xml Downloading ActiveState Package Repository packlist...not modified Downloading theoryx5.uwinnipeg.ca packlist...done Updating theoryx5.uwinnipeg.ca database...done Repo 3 added. ####リポジトリの確認 ppm> repo list レトトトトツトトトトトトツトトトトトトトトトトトトトトトトトトトトトトトトトトトトトトトトソ ウ id ウ pkgs ウ name ウ テトトトトナトトトトトトナトトトトトトトトトトトトトトトトトトトトトトトトトトトトトトトトエ ウ 1 ウ 9222 ウ ActiveState Package Repository ウ ウ 3 ウ 662 ウ theoryx5.uwinnipeg.ca ウ タトトトトチトトトトトトチトトトトトトトトトトトトトトトトトトトトトトトトトトトトトトトトル (2 enabled repositories) ppm>
後は、DBD-Pgがリポジトリに存在することを確認して、installすれば完了です。
ppm> search DBD-Pg Downloading ActiveState Package Repository packlist...not modified 1: DBD-Pg PostgreSQL database driver for the DBI module Version: 1.45 Author: http://gborg.postgresql.org/project/dbdpg/ Repo: theoryx5.uwinnipeg.ca CPAN: http://search.cpan.org/dist/DBD-Pg-1.45/ Installed: 1.22 (site) ppm> install 1 Downloading DBD-Pg-1.45...done Unpacking DBD-Pg-1.45...done Generating HTML for DBD-Pg-1.45...done Updating files in site area...done 2 files deleted 1 file unchanged 5 files updated ppm>
しばらく、このDBD-Pg v.1.45で動作を試すことにします。