Search found 2 matches

by patbob
03 July 2020, 19:28
Forum: Developers
Topic: Multiple database updates as atomic operation?
Replies: 4
Views: 1716

Re: Multiple database updates as atomic operation?

Thanks you all. I'd tried using two statements separated with a ';', but it wouldn't work. I'll try it again since my SQL-foo is very weak and I might have missed something. I haven't tried the IF-CASE thing, so I'll give that a try too. I'll post back here if I get something working. I think Ricard...
by patbob
26 June 2020, 19:00
Forum: Developers
Topic: Multiple database updates as atomic operation?
Replies: 4
Views: 1716

Multiple database updates as atomic operation?

In my game, I need to move a pawn from one square on the board to another. So far, the only way I've gotten this to work, is via two separate database updates: UPDATE board SET board_player=NULL WHERE ( board_row = 6 AND board_col = 1 ) UPDATE board SET board_player='2321571' WHERE ( board_row = 6 A...

Go to advanced search