>
> My script suddenly makes two connects and hangs forever, waiting for 
> himself to complete something.
>
> What could I do wrong?
>

You are creating multiple connections. Just assign the database handle to a 
variable and reuse that.

my $db = $pg->db;
my $tx = $db->begin;
$db->select(...);
...

--
sebastian 

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to