Re: [GENERAL] What does this mean ? - Mailing list pgsql-general

From M Simms
Subject Re: [GENERAL] What does this mean ?
Date
Msg-id 199906251731.SAA17709@argh.demon.co.uk
Whole thread Raw
In response to Re: [GENERAL] What does this mean ?  (Mario Jorge Nunes Filipe <mjnf@neptuno.sc.uevora.pt>)
List pgsql-general
>     I really need help here, because i really need this thing working with
> transactions. Just in case here is the code:
>
> pg_Exec($conn, "abort");
> $result = @pg_Exec($conn, "begin");
> if (!$result);
>   $msg ="sac-pcgra (2):".addslashes(pg_ErrorMessage($conn));
>   $msg = chop($msg);
>   echo "<script>alert(\"$msg\");history.go(-1)</script>";
>   pg_Close($conn);
>   exit;
> }
>
>
> When running this i always get an alert box saying "sac-pcgra(2):".
>
> What is wrong?
>

In the program, have you forked since opening the connection to the database?
If so, you MUST open a new connection in the child process rather than
use the same one that is alive in the parent. This could be the problem...

pgsql-general by date:

Previous
From: Herbert Liechti
Date:
Subject: decimal(9.2)
Next
From: Herbert Liechti
Date:
Subject: decimal(9.2)