tima: (Default)
[personal profile] tima
Она все в декрете, а я все бултыхаюсь в капканах, которые она понаставила.

Полдня потратил сегодня. Нашел только что. Поэтому хочу всем сказать - Ребята! Не забывайте 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.

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

Just curious.

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

Re: Just curious.

Date: 2004-11-19 05:59 am (UTC)
From: [identity profile] tima.livejournal.com
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.

Profile

tima: (Default)
tima

April 2026

S M T W T F S
    1 2 34
5 6 7 8 9 1011
12 131415161718
19202122232425
2627282930  

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 13th, 2026 04:32 pm
Powered by Dreamwidth Studios