my boss decided to upgrade PostGreSQL on our database server without checking into the repercussions. now, because of changes in the way null strings ( as opposed to explicit NULL values ) are handled, some of our sites are breaking with:

[Tue Apr 6 15:37:04 2004] NewUser.cgi: DBD::Pg::st execute failed: ER +ROR: pg_atoi: zero-length string at /usr/lib/perl5/site_perl/5.8.0/D +BIx/Broker.pm line 575. [Tue Apr 6 15:37:04 2004] NewUser.cgi: Error executing run mode 'real +ly_pay': Cannot execute statement (error 7): ERROR: pg_atoi: zero-le +ngth string

i already tried a quick-hack fix in DBIx::Broker to set values to NULL if the string val in the array was empty. but that's an ugly bandaid, and i need to fix it RIGHT.

none of the postgres client libs are on the machine in question. IIRC, the client libs need to be there ( even if the client isn't explicitly installed ) for the install process to complete. the DB's on one machine, the web app's on another. pretty standard.

so what strategy have others used to get around this? upgrading DBD::Pg is needed anyway; i don't know if it will explicitly fix the issue, but it's a good move in the right direction.


In reply to upgrading DBD::Pg without client libs by geektron

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.