Different query results in psql and Perl DBI with Postgres 7.2.1
В списке pgsql-sql по дате отправления:
| От | brendanl@iname.com (Brendan LeFebvre) |
|---|---|
| Тема | Different query results in psql and Perl DBI with Postgres 7.2.1 |
| Дата | |
| Msg-id | cf7bc53b.0401070314.41bc05ad@posting.google.com обсуждение исходный текст |
| Список | pgsql-sql |
I have a script that updates one record in a PostgreSQL 7.2.1 database through the Perl DBI. Here is the output from my log, which outputs the query sent to the DBI and the return value: --- Update query: UPDATE item SET status='SOLD' WHERE item_id=1129832 1 rows affected. Update query: UPDATE item SET status='STORE' WHERE item_id=1130081 0E0 rows affected. --- In both cases, the target record exists without question, and in the latter case, I receive the expected "UPDATE 1" when I execute the same query from within psql. Even more perplexing: the "0E0" occurs ONLY when setting status to 'STORE', and not 100% of the time. (though it happens far more often than not.) It seems to operate in stretches, too: when I am getting 1-row updates back from the latter query type, it happens several times in succession. Where do I even begin to attempt a diagnosis?
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера