It means that second TX hangs/wait on this sql
code
FIRST TX
INSERT INTO phone_number( id_phone_number,id_phone_number_type) VALUES (1,500);
SECOND TX
select * from phone_number_type WHERE id_phone_number_type=500 for update //hangs/wait to TX with insert into ends
but this works fine
UPDATE phone_number_type SET val=val+1 WHERE id_phone_number_type=500
W dniu 2016-06-07 o 09:35, Szymon Lipiński pisze:
--
z poważaniem
Mirek Szajowski
Projektant-programista
Tel: 663 762 690
m.szajowski@streamsoft.pl
Streamsoft
65-140 Zielona Góra, ul.Kossaka 10
NIP: 929-010-00-96, REGON: 970033184
Tel: +48 68 45 66 900, Fax: +48 68 45 66 933
www.streamsoft.pl
Uwaga: Treść niniejszej wiadomości może być poufna i objęta zakazem jej ujawniania. Jeśli czytelnik lub odbiorca niniejszej wiadomości nie jest jej zamierzonym adresatem, pracownikiem lub pośrednikiem upoważnionym do jej przekazania adresatowi, niniejszym informujemy że wszelkie rozprowadzanie, dystrybucja lub powielanie niniejszej wiadomości jest zabronione. Odbiorca lub czytelnik korespondencji, który otrzymał ja omyłkowo, proszony jest o zawiadomienie nadawcy i usuniecie tego materiału z komputera. Dziękujemy. Streamsoft.
Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader or receiver of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you received this in error, please contact the sender and delete the material from any computer. Thank you. Streamsoft.