Symptoms were that all the data in one table was being updated with the same values.
Been going round in circles.
Then saw the following SQL lurking amongst a ton of other SQL:
UPDATE tableName
SET col1 = @col1,
col2 = @col2,
col3 = @col3
etc
WHERE primaryKey = primaryKey;
The missing @ on primaryKey parameter!
In the old days before senility and long term alcohol abuse I would have spotted that in seconds.
Been going round in circles.
Then saw the following SQL lurking amongst a ton of other SQL:
UPDATE tableName
SET col1 = @col1,
col2 = @col2,
col3 = @col3
etc
WHERE primaryKey = primaryKey;
The missing @ on primaryKey parameter!
In the old days before senility and long term alcohol abuse I would have spotted that in seconds.
Comment