in reply to Re: fetchrow_array does not yield the same results as the sql query by itself does.
in thread fetchrow_array does not yield the same results as the sql query by itself does.

But the point of transactions is to perform some work atomically, isn't it? On commit, the DB engine arranges to show the results of all queries as if they were executed at one instant in time. So there's no way of seeing the results of part of a transaction. Or am I wrong?

--
David Serrano

  • Comment on Re^2: fetchrow_array does not yield the same results as the sql query by itself does.

Replies are listed 'Best First'.
Re^3: fetchrow_array does not yield the same results as the sql query by itself does.
by perrin (Chancellor) on Sep 06, 2006 at 20:03 UTC
    Isolation levels are more complex than that. Depending on how you have things set, you may not be able to see data that was committed by other processes after the start of a transaction. For more on how this works, see this. It's from the MySQL docs, but PostgreSQL and Oracle work this way too.

    UPDATE: corrected link