- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Duh. Everybody knows OCTOBER and NOVEMBER should be capitalized... (zeroth?)
Admin
<bill> Would you mind telling me in which month you were born? <al> NO <bill> We don't appear to have that value in our database - I'll add it.
Admin
select * from month where month = 'frist'
Admin
+-------------+ | month | +-------------+ | NULL | | FRIST? | | SCEOND | | 4 | | T | | C | | A | | 8 | | 15 | | L | | 16 | | P | | D | | S | | 23 | | 42 | | YES | | | | 0 | +-------------+
Admin
Judging by the fact that both NULL and the empty string occur, I infer it's not Oracle. At least something is sane.
Admin
Sure, "DELETE FROM month" should fix the problem
Admin
holy hell
Admin
Well i can finally say I'm born T-32-198L
Admin
It's missing FILE_NOT_FOUND.
Admin
Data validation, DO YOU SPEAK IT?!
Admin
Actually, I was born on the 11st of NULL, 2147483647 BC. This table looks fine.
Admin
"File Not found" is well known, valid month name, but is missing there.
Admin
Not only is it missing FILE_NOT_FOUND, as previously mentioned, it is also missing the months of true, false, True, False, TRUE, and FALSE.
And also FAIL FAIL, FAIL FAIL, FAIL FAIL.
Admin
Admin
Admin
Judging by the mysql> prompt I'd say it's not Oracle also.
Admin
The real WTF is saying "none are", and not "none is". None takes singular verb forms.
Captcha: luptatum - The greatest werewolf jazz pianist of all time.
Admin
Probably is ain't being worse then meking code for luner calendar. When Pakistani entering burth month, often time is using Rahab or Shaban rather then May or June. Intarnationalization ain't being something to forgot.
Admin
if month is purely informational and business logic does not depend on it - this is acceptable
Admin
According to this source it's a little more complicated than that.
Summary: None can be singular or plural, unless it quantifies a singular or mass noun. Don’t believe anyone who says none has to be singular because it’s a contraction of not one. Both none of the meals is and none of the meals are are okay, and both none is and none are are okay. *None of the stuff are is ungrammatical, though.
Admin
Why on Earth would you even have a MONTH table anyway? In case "they" decide to change them?
Admin
Oh my God, it's full of WTFs…
It's "only" "missing": brillant, FILE_NOT_FOUND, septembruary, kajillion, and NOTIONAL_MONTH_AFTER_DECEMBER_FOR_INVENTORY_RECONCILIATION.
Admin
Admin
maybe the inventor of this table even came from the future and saw that they already invented the months NULL, T, C and so on and it was decided to write NOVEMBER always entirely uppercase, then the software is just future save.
Admin
That could make sense in some cases I guess if you want to use it for joining and do not want a 'magic number' in your database. Is Month=1 January or February. A 'Month'-table could tell you.
Admin
So.....is TRWTF that it took 0.04 sec to run the query?
Admin
It's also missing rows for YES and YESVEMBER.
Admin
Well, to be fair, someone else was running "select * from YEAR" at the same time. You really don't want to know what that table looks like, but suffice to say it slows the DB down just a little bit.
Admin
You forgot Smarch
captcha: tego I'm thirsty, shall we to tego?
Admin
It's also missing Smarch.
Edit: Damn, beat me by under a minute.
Admin
TRWTF is that even with an extra 16 months, they probably still missed most production deadlines.
Admin
Let me guess:
Admin
Is it NULL or is it the string 'NULL'?
Also, is that the empty string or are there some blank spaces for padding?
Admin
Win.
Admin
NULL has always been my favorite month of the year! The NULL rising over the horizon early in the morning, the scent of the NULL in the air, why it just can't be beat!
Admin
And... the runner-up.
Admin
Sorry missing Floopuary...
See Dilbert for January 8th 2003 !!!
This has been a known month for so long you think they would have remembered that one
Admin
The table was not cached in memory, so it took 0.01 sec to execute.
MySQL then took 0.03 seconds to try to determine WTF happened to corrupt the month table so horribly.
Admin
Feature Request 985823: Please add month: Febtobuary
Admin
It may be a batch file called select.bat preceded by prompt mysql$g.
Admin
Having a look up table for commonly used data is a good idea, but yeah there is some legacy data in there that needs a cleanse.
You could export this to xml and then load it in the cache of the application.
Admin
You may not remember these old times, when the French tore down monarchy and decided to stand for a "Republic" thing. Well, they also decided to change days and months for almost 14 years.
Weeks were ten days long, months were 3 weeks long, and added 6 days to make it even with Earth rotation.
You may check "Republican Calendar" on wikipedia and laugh about how we French are lame, I grant you this right.
However, never assume months are granted :)
Admin
Not fine grained enough...it needs to be nanoseconds, these days. Be sure to provide for expansion to picoseconds (at least).
Admin
TRWTF is that it's missing OCTEMBER clearly.
Captcha: luptatum: latin derivation of wolf. maybe.
Admin
It misses Apples.
Admin
And, while I haven't bothered to write the code, my highly experienced programmer instincts suggest there might be an opportunity for recursion in there somewhere.
Admin
Up with anarchy! Define your own month! I happen to like month "Puce", personally.
Admin
Is the spiffy ASCII art formatting a feature of MySQL or -God help us-, was it embeddeded within each record in the table, so it would print out like this when queried?
Disclamer: I don't know anything about MySQL.
Admin
They would have been better off using RegEx.
Admin