You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Ragnar Hakonarson <rh...@conquestnetwork.com> on 2000/07/21 16:56:58 UTC

%udat storage problems

Hi,

I am trying to use Postgres as the session database for %udat in embperl.
See below my configuration:

  $ENV{EMBPERL_SESSION_CLASSES} = "DBIStore NullLocker";
  $ENV{EMBPERL_SESSION_ARGS} =
"DataSource=dbi:Pg(AutoCommit=>0):dbname=transactiondb";

I get the following error when trying to use this configuration:


[16766]ERR: 32: Line 10: Warning in Perl code: DBD::Pg::st execute failed:
ERROR: Unterminated quoted string

[16766]ERR: 24: Line 10: Error in Perl code: [Fri Jul 21 15:48:30 2000]
null: DBD::Pg::st execute failed: ERROR: Unterminated quoted string

Apache/1.3.9 (Unix) mod_perl/1.21 HTML::Embperl 1.3b2 [Fri Jul 21 15:48:30
2000]


I have managed to use mysql with success, I therefore suspect that I state
the '$ENV{EMBPERL_SESSION_ARGS}' attribute wrongly.

Any clues?

Regards,
Ragnar


RE: %udat storage problems

Posted by Gerald Richter <ri...@ecos.de>.
Hi,
>
> I am trying to use Postgres as the session database for %udat in embperl.
> See below my configuration:
>
>   $ENV{EMBPERL_SESSION_CLASSES} = "DBIStore NullLocker";
>   $ENV{EMBPERL_SESSION_ARGS} =
> "DataSource=dbi:Pg(AutoCommit=>0):dbname=transactiondb";
>
I didn't have tried Apache::Session with Pg so far. Maybe you can try leave
out the AutoCommit setting:

$ENV{EMBPERL_SESSION_ARGS} = "DataSource=dbi:Pg:dbname=transactiondb";

Gerald