Transactions and Savepoints - Mailing list pgsql-php

From Stefan Sturm
Subject Transactions and Savepoints
Date
Msg-id 4208BF6A.9040204@anrath.info
Whole thread Raw
Responses Re: Transactions and Savepoints
List pgsql-php
Hello,

I have a problem with savepoints.

I have a function which does some DB changed. This changes have to be in
  a single Transaction. This function is now called in two different
ways. Once within a transaction and once not in a transaction. But how
can i check if I am within a transaction, so I  can start a new
transaction or set a savepoint.

Is there a way to check this?

Thanks and Greetings,

Stefan Sturm


pgsql-php by date:

Previous
From: Marco Colombo
Date:
Subject: Re: How to handle missing pgsql.connect_timeout
Next
From: Tommy Phillips
Date:
Subject: Re: Transactions and Savepoints