Re: [Templates] Connection error with DBD::Pg
[prev]
[thread]
[next]
[Date index for 2005/04/16]
Thomas Klausner a écrit :
>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') %]
>
>
>
>
Hi,
Ok, I see.
Thank you for your anwser.
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates