Re: [Templates] Connection error with DBD::Pg

[prev] [thread] [next] [Date index for 2005/04/16]

From: Jean-Michel Caricand
Subject: Re: [Templates] Connection error with DBD::Pg
Date: 20:13 on 16 Apr 2005
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

[Templates] Connection error with DBD::Pg
Jean-Michel Caricand 20:16 on 16 Apr 2005

Re: [Templates] Connection error with DBD::Pg
Thomas Klausner 20:51 on 16 Apr 2005

Re: [Templates] Connection error with DBD::Pg
Jean-Michel Caricand 20:13 on 16 Apr 2005

Generated at 09:31 on 27 Apr 2005 by mariachi v0.52