DBD-SQLite-1.14

| | | Comments (0) | TrackBacks (0)

MacPorts環境下.CPAN経由で取得,make test 失敗.こけてるテスト内容を見ても,テストのほうがおかしく見える.

他に急ぎの件があるためこちらは保留.メモ.おなかすいてめまい.

$ sudo port install p5-dbd-sqlite
で済む話であるが,気持ち悪いので.

sqliteはsqlite3をMacPorts経由でインストール.


おべんと食べたらテストがちゃんと読めるようになった.テスト自体はさすがに合ってるよ.

$db->do('create table testerror (a, b)');
$db->do('insert into testerror values (1, 2)');
$db->do('insert into testerror values (3, 4)');

$db->do('create unique index testerror_idx on testerror (a)');
eval {
$db->do('insert into testerror values (1, 5)');
};
ok($@);

例外を投げるはずだが,投げない.ボーク.


答えはMakefile.PLの中に.通常はインストール済みのライブラリ
/opt/local/lib/libsqlite3
を使うところ,コマンドラインオプション
perl Makefile.PL USE_LOCAL_SQLITE=true
で,バンドル版を利用すればOK.

0 TrackBacks

Listed below are links to blogs that reference this entry: DBD-SQLite-1.14.

TrackBack URL for this entry: http://storybook.jp/mtadmin/mt-tb.cgi/13

Leave a comment

About this Entry

This page contains a single entry by hidekaz published on April 3, 2008 10:36 PM.

仮想マシンとTimeMachine was the previous entry in this blog.

Catalyst is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Categories