Re: [SQL] TRANSACTIONS and TCP/IP

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [SQL] TRANSACTIONS and TCP/IP
Дата
Msg-id 23218.945315752@sss.pgh.pa.us
обсуждение исходный текст
Ответ на TRANSACTIONS and TCP/IP  (Barry Baldwin <bbaldwin@indyme.com>)
Список pgsql-sql
Barry Baldwin <bbaldwin@indyme.com> writes:
> I've got postgres 6.5.2 running on a Linux box and I'm developing a client
> app in Delphi.  The client sends SQL commands via TCP/IP.  
> I've tried starting a transaction by sending the BEGIN command and then I
> update a table and then send a ROLLBACK command to try 
> and abort the transaction.  It doesn't seem to be working.

I don't know anything about Delphi, but it sure sounds like something
in the interface software you're using is sending BEGIN and COMMIT
commands for you.  This feature is commonly called autocommit --- look
for documentation on how to turn it off.

> I tried all of the above in psql and it works fine.  Is this something that
> just won't work over a TCP/IP connection?

No, connection type hasn't got anything to do with it...
        regards, tom lane


В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] having with sub select?
Следующее
От: Howie
Дата:
Сообщение: Re: [SQL] Deleting large objects from database.