in reply to DBI and BLOBs

OID is integer-ish. Consider changing your code to explicitly case your OID to oid. $blobid::oid

Replies are listed 'Best First'.
Re: Re: DBI and BLOBs
by Improv (Pilgrim) on Mar 24, 2003 at 17:31 UTC
    I'm sorry -- I don't understand this at all. $blobid::oid would be $oid in the blobid:: namespace, I think.

      Oh I'm sorry. See, I forgot the '::oid' part would be interpreted as part of the variable name. Its not. One of the ways you type a variable is to append it following a double colon. So 12345::integer and 'this is a text field'::text are valid PostgreSQL constructs. I suggested you write "insert into patblob values ('Yo'," . $blobid . "::oid)" this. I just moved $blobid out of the string so its obvious which parts are SQL and which parts are perl.