Representative Line: National Exclamations

Date:

Share:

Carlos and Claire found themselves supporting a 3rd party logistics package, called IniFreight. Like most "enterprise" software, it was expensive, unreliable, and incredibly complicated. It had also been owned by four different companies during the time Carlos had supported it, as its various owners underwent a series of acquisitions. It kept them busy, which is better than being bored.

One day, Claire asked Carlos, "In SQL, what does an exclamation point mean?"

"Like, as a negation? I don't think most SQL dialects support that."

"No, like-" and Claire showed him the query.

select * from valuation where origin_country < '!'

"IniFreight, I presume?" Carlos asked.

"Yeah. I assume this means, 'where origin country isn't blank?' But why not just check for NOT NULL?"

The why was easy to answer: origin_country had a constraint which prohibited nulls. But the input field didn't do a trim, so the field did allow whitespace only strings. The ! is the first printable, non-whitespace character in ASCII (which is what their database was using, because it was built before "support wide character sets" was a common desire).

Unfortunately, this means that my micronation, which is simply spelled with the ASCII character 0x07 will never show up in their database. You might not think you're familiar with my country, but trust me- it'll ring a bell.

[Advertisement]
Utilize BuildMaster to release your software with confidence, at the pace your business demands. Download today!

Source link

Subscribe to our magazine

━ more like this

Escape the competition, with Peter Thiel

DARYL WOODSON: Speed is not manufactured by how fast the feet move, but how much force per step. REID HOFFMAN: That’s Darryl Woodson, a...

‘People Who Go In That Locker Room Come Out…Different,’ Jets Custodian Warns Aaron Glenn

EAST RUTHERFORD, NJ—Speaking grimly as he mopped the floor beneath flickering fluorescent lights, longtime MetLife Stadium custodian Keith Browning reportedly approached first year New...

18 Chic Pieces From Boden’s Autumn Edit—All Editor Approved

Humaa is the Junior Branded Content Editor at Who What Wear UK, where she specialises in paid-for and affiliate content across beauty and fashion....

Analog(ue) #227: It’s Gonna Go How It’s Gonna Go

#227: It's Gonna Go How It's Gonna Go July 7th, 2024 · 80 minutes Casey's back from California, and soon he'll be joining Myke in London! This episode of Analog(ue) is...

The blueprint for AI in support didn’t exist. Until now.

Rolling out an AI Agent doesn’t just change how your team works – it changes who your team is. That’s something we learned firsthand. Before...