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

JPMorgan Worth More Than Citi, Bank of America, Wells Fargo

JPMorgan Chase is far ahead of its rivals — but the bank is still running the race with an eye on its...

It’s True—H&M X Mia Regan Summer Collection is as Good as You’ve Heard

For many in the fashion world, the passage of time isn’t measured in seasons or calendar months—it’s marked by major fashion collaborations. Don’t pretend...

Ozempic Butt, a New Side Effect of the Drug

By now, you've probably heard all about Ozempic. The popular drug is a brand name for semaglutide, which is primarily used to help people...

How I Used Claude to Hack

By Golan Yosef, Chief Security Scientist and Co-Founder, Pynt (July 15), First published on SecurityBoulevard.com You don’t always need a vulnerable app to pull...

Jack Lowden To Star In Drama Series Based On ‘Berlin Noir’ Books From Playtone And Apple; Tom Shankland To Direct

The Berlin Noir book series features the iconic detective, Bernie Gunther, and this adaptation begins with Metropolis...