Re: [Templates] Connection error with DBD::Pg
[prev]
[thread]
[next]
[Date index for 2005/04/16]
Hi!
On Sat, Apr 16, 2005 at 10:16:48PM +0200, Jean-Michel Caricand wrote:
> [% USE DBI('dbi:Pg:facturecq', 'xxx', 'xxx') %]
>
> If I use DBI with MySQL and another database, all work fine !
DBD::Pg has a different connection syntax than DBD::mysql
see perldoc DBD::Pg
$dbh = DBI->connect("dbi:Pg:dbname=$dbname", "", "")
So you need to change your code to
[% USE DBI('dbi:Pg:dbname=facturecq', 'xxx', 'xxx') %]
--
#!/usr/bin/perl http://domm.zsi.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
 |
Re: [Templates] Connection error with DBD::Pg
Thomas Klausner 20:51 on 16 Apr 2005
|