Subject | Re: [firebird-php] Inserted record cannot be selected |
---|---|
Author | Milan Babuskov |
Post date | 2003-11-14T08:19:19Z |
Thomas wrote:
you are using isql to monitor table, and PHP to do the work. So when you
do SELECT in isql, you are in transaction until you "commit" it. If you
do SELECT in isql and then run something from PHP, it will be written to
database, but you won't see it from isql, since it didn't exists at the
time you started isql transaction. That's why you have to commit, and
next select (new transaction) shows data.
HTH
--
Milan Babuskov
http://fbexport.sourceforge.net
> This is because of the PHP default transaction, which is automaticallyNot really because of that. Read more carefully ;)
> committed or rolled back on script termination.
>>I insert a record through a "execute procedure" query in PHP, and I foundThe stored produre DID write the record. Reading this, my guess is that
>>that the new inserted
>>record cannot be retrieved until I execute a "commit" through isql.
>>
>>Is that I can force the write in a stored procedure ?
you are using isql to monitor table, and PHP to do the work. So when you
do SELECT in isql, you are in transaction until you "commit" it. If you
do SELECT in isql and then run something from PHP, it will be written to
database, but you won't see it from isql, since it didn't exists at the
time you started isql transaction. That's why you have to commit, and
next select (new transaction) shows data.
HTH
--
Milan Babuskov
http://fbexport.sourceforge.net