tima: (Default)
tima ([personal profile] tima) wrote2004-11-18 01:29 pm

Индуска моя опять отчебучила.

Она все в декрете, а я все бултыхаюсь в капканах, которые она понаставила.

Полдня потратил сегодня. Нашел только что. Поэтому хочу всем сказать - Ребята! Не забывайте cast NULL or empty string!!! Это было что-то. Только логикой дошел, никакими дебагами не получалось - уж больно много SQLов она в UNION нашарашила...

"Back when I was 5, my dad would tell me 'always use source control, son'. Of course, I didn't understand what the heck he was talking about. But now I do. NOW I do."

Tim Borodin, programmer-child-at-heart. Thought #7.6.2.1.

[identity profile] kpoxa-e.livejournal.com 2004-11-18 10:48 am (UTC)(link)
Какой, нафиг, source control!
Не имейте дел с индусами, и будет вам шастье :)

Just curious.

[identity profile] sto-rozh.livejournal.com 2004-11-19 04:25 am (UTC)(link)
Cust Null to what?

Re: Just curious.

[identity profile] tima.livejournal.com 2004-11-19 05:59 am (UTC)(link)
there is a big union with 4 or 5 SQLs. All of them have the field defined as CHAR. In the last one (she added without my supervision) she put that field as - "". Which Informix by default considered VARCHAR. So the ouput of the entire script got truncated to 255 chars in that field. And that was a note field having ALL escalation notes for a server. So the ticketing system got mad not receiving notes from us ...

Casted the "" to CHAR like that - NULL::CHAR - fixed the problem.