PostgreSQL How to get a result, transactions via php -



PostgreSQL How to get a result, transactions via php -

i need transaction update, do:

$sql = 'begin;set transaction isolation level serializable; update partner_statistic set "views_count"="views_count"+1 "id"=15 returning id; commit;';

transaction query success,but utilize unit test, , not test transaction don't success result pg_query, whow can test ?

do 1 phone call pg_query per query.

php postgresql phpunit

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -