Major development in search for Julian Story's missing remains
CodeSOD: A Unique Way to Primary Key
"This keeps giving me a primary key violation!" complained one of Nancy's co-workers. "Screw it, I'm dropping the primary key constraint!"
That was a terrifying thing to hear someone say out loud. Nancy decided to take a look at the table before anyone did anything they'd regret.
CREATE TYPE record_enum AS ENUM('parts'); CREATE TABLE IF NOT EXISTS parts ( part_uuid VARCHAR(40) NOT NULL, record record_enum NOT NULL, ... ... ... PRIMARY KEY (part_uuid, record) );This table has a composite primary key. The first is a UUID, and the second is an enum with only one option in it- the name of the table. The latter column seems, well, useless, and certainly isn't going to make the primary key any more unique. But the UUID column should be unique. Universally unique, even.
Nancy writes:
Was the UUID not unique enough, or perhaps it was too unique?! They weren't able to explain why they had designed the table this way.
Nor were they able to explain why they kept violating the primary key constraint. It kept happening to them, for some reason until eventually it stopped happening, also for some reason.
I too fell for the oleaginous charms of the same type of man as the Coldplay kisscam CEO. That's how I know his playbook - and exactly what happens now
Vibe coding service Replit deleted user’s production database, faked data, told fibs galore
The founder of SaaS business development outfit SaaStr has claimed AI coding tool Replit deleted a database despite his instructions not to change any code without permission.…
Did Clifton Bridge 'body in a suitcase' murderer kill before? How savage butchery of gay couple in their London flat sparked fears he'd killed for Colombian cartels
'I wish I'd known this before having a facelift': Grandmother who looks '20 years younger' has two big regrets
I'm a royal fashion expert and here's why Penelope Chilvers' summer shoe collection is worth every penny
Bill Cosby mourns loss of his 'TV son' Malcolm-Jamal Warner and reveals their emotional last conversation
Brooklyn Beckham horrifies followers with 'disgusting' cooking tip as he whips up a pasta dish on luxury yacht
Father-of-three who fled to Russia to escape 'woke' America 'is sent to the front line to fight for Putin'
Nigel Farage warns Britain is facing 'societal collapse' with lawlessness taking hold 'very rapidly' - as he vows to halve crime in five years if he becomes PM
Man accused of murdering wife and hiding body for weeks said he wanted to 'go big' with first crime
Colin Pitchfork could be back on the streets by Christmas as child killer makes a new bid for freedom
Revenge of the Taliban continued: Warlords now arresting Afghans trying to check British government website at internet cafes to see if their details lost in UK's worst ever data breach
Our modern game owes so much to Gazza... it's sad to see him grow more fragile by the day, writes OLIVER HOLT
Some Afghans brought to the UK could be 'radicalised' here, ministers are warned - as the numbers expected to present as homeless are feared to be worse than previously thought
Family of man killed in MRI horror reveal he was trapped inside machine for nearly an hour
Anxiety, ADHD and addiction were killing me. These simple lifestyle changes saved me in a YEAR, I lost 54kg - and finally got off the meds doctors said I'd need for life
NASA hacked hardware of camera orbiting Jupiter – and fixed it
NASA has revealed that one of the cameras on the Juno craft it sent to Jupiter malfunctioned, and that it fixed it with some very, very, remote hardware hacking.…