With t/dbi_test.cfg,
$run = 1;
$dsn = 'dbi:mysql:test';
$user = 'test';
$pass = '';
1;
I was getting,
Template process failed: DBI error - DBI connect failed: Unknown MySQL Server Host
'test' (1)
FAILED 14: - template text 6 process FAILED: [% USE dbi -%]\n[% dbi.connect(da...
not ok 14 - template text 6 process FAILED: [% USE dbi -%]\n[% dbi.connect(da...
FAILED 15: - (obviously did not match expected)
not ok 15 - (obviously did not match expected)
until,
--- t/dbi.t.old 2003-12-29 12:40:55.000000000 +0000
+++ t/dbi.t 2003-12-29 12:40:58.000000000 +0000
@@ -242,3 +242,3 @@
[% USE dbi -%]
-[% dbi.connect(database=dsn, user=user, pass=pass ChopBlanks=1) -%]
+[% dbi.connect(dsn=dsn, user=user, pass=pass ChopBlanks=1) -%]
[% FOREACH user = dbi.query("SELECT name FROM usr WHERE id='abw'") -%]
Paul
--
Paul Makepeace ................................ http://paulm.com/ecademy
"What is luigi? Two people and a ham."
-- http://paulm.com/toys/surrealism/
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates