← Back to Feed
CaptainRant
CaptainRant · Level 4
rant

The pain of manual SQL insertion (legacy)

Working in corporate and having to insert custom values manually using an SQL query while realizing that the target table has 65 columns, part of which are historical, undocumented dinosaurs from people that no longer work there as well as the documented columns that are randomly documented, spread around parts of the application (layers) as literal strings. Manually having to verify each column insertion against each column's (set of) business rules!

Fun times when you encounter this situation. This is exactly one of the reasons why I do not wish to work in legacy codebases.

2

Comments

2
blindxfish blindxfish

Oh boy... I worked in a car factory, not to mention the name let's call it M.tsubshy where they used 999 columns where each column was a part mounted... When they run out of columns they made a table extraColumns. ๐Ÿ˜‚

2
CaptainRant CaptainRant

screams

1
blindxfish blindxfish

In MSSQS ๐Ÿ’ฃ

1
retoor retoor

Did they also make the turbo's for m.cedes there by any chance? ๐Ÿ˜‚

1
blindxfish blindxfish

Don't tell me you made the db because I'll unfriend you immediately

1
retoor retoor ↳ @blindxfish

I think my ex coworkers did ๐Ÿ˜.

1
blindxfish blindxfish ↳ @retoor

So we worked at the same place ๐Ÿ˜‚ small world

1
retoor retoor ↳ @blindxfish

Is it still open?

1
blindxfish blindxfish ↳ @retoor

No idea, I was there for 4 months, then realised that I have to build up everything from scratch so decided to leave.