Re: [GENERAL] What does this mean ?

Поиск
Список
Период
Сортировка
От M Simms
Тема Re: [GENERAL] What does this mean ?
Дата
Msg-id 199906251731.SAA17709@argh.demon.co.uk
обсуждение исходный текст
Ответ на Re: [GENERAL] What does this mean ?  (Mario Jorge Nunes Filipe <mjnf@neptuno.sc.uevora.pt>)
Список 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 по дате отправления:

Предыдущее
От: Herbert Liechti
Дата:
Сообщение: decimal(9.2)
Следующее
От: Herbert Liechti
Дата:
Сообщение: decimal(9.2)