3

I'm using spring transationTemplate , and run some queries by doInTransaction method. I got exception about deadLock, on 2 queries that executed sequentially into the transaction.

REPLACE INTO TABLE(A,B,C) VALUES ('AAA','BBB','CCC');

UPDATE  TABLE SET PRICE = null  WHERE A='AAA' AND B='BBB';

How is it possible? and what is the solution?

Tal Eden
  • 145
  • 1
  • 3
  • 9

0 Answers0