[Dbi-interbase-devel] I found why coredumps!!!
Status: Beta
Brought to you by:
edpratomo
From: Michael S. <mi...@ch...> - 2000-08-28 11:48:29
|
Hello Edwin, %subj%!!!!!!!!!!!!! When $dbh->trace(5) it cannot find ib_dateformat and dumps. When I set pass it as attribute for $sth->prepare, it works. Debug output without attrs: ... Decode passed. ib_dateformat: (null). Segmentation fault (core dumped) With attrs: ... Decode passed. ib_dateformat: %c. Len: 2. I didn't see much into logic and don't know why the format is not being set. Could you, please, fix it ASAP? I hope it's not hard. I think it would be the best if you set all the default attributes just in the begin of "prepare", like this: if (attribs && (svp = DBD_ATTRIB_GET_SVP(attribs, "ib_dateformat", 13)) != NULL) IB_SQLtimeformat(imp_sth->ib_dateformat, svp); else IB_SQLtimeformat(imp_sth->ib_dateformat, "%c"); It will save as from the further checkings. Here's the dirty hack attached. It fixes the current problem, but I'm not sure whether the programs will coredump at exit now. It would be fine if it didn't yet. Best regards, Michael mailto:mi...@ch... |