Re: [GENERAL] What does this mean ?

From: M Simms <grim(at)argh(dot)demon(dot)co(dot)uk>
To: mjnf(at)uevora(dot)pt
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] What does this mean ?
Date: 1999-06-25 17:31:33
Message-ID: 199906251731.SAA17709@argh.demon.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Herbert Liechti 1999-06-25 17:56:58 Re: [GENERAL] decimal(9.2)
Previous Message Herbert Liechti 1999-06-25 16:59:25 decimal(9.2)