Re: Large Object => invalid input syntax for integer: "" - Mailing list pgsql-general

From Tom Lane
Subject Re: Large Object => invalid input syntax for integer: ""
Date
Msg-id 25599.1118066913@sss.pgh.pa.us
Whole thread Raw
In response to Large Object => invalid input syntax for integer: ""  (grupos <grupos@carvalhaes.net>)
List pgsql-general
grupos <grupos@carvalhaes.net> writes:
> I need to use large objects BUT I am having problemns... I instaled
> PostgreSQL 8.0.3 windows version with lo module.

> first, I created the table below:
> CREATE TABLE test
> (
>   description varchar(20),
>   picture lo
> )
> WITHOUT OIDS;

> After trying to make one insert without value for the lo I get the error
> below:

> INSERT INTO test VALUES (1);

> ERROR:  invalid input syntax for integer: ""

This example works fine for me.  What's more, that error message doesn't
seem to have anything to do with LO columns --- it implies you were
trying to insert into an integer column.  (The error message could not
be triggered by insertion into a varchar column either, contrary to some
claims made elsewhere in this thread...)

Are you sure that you are inserting into the table you think you are?
I'm wondering about multiple tables named "test" in different schemas,
for instance ...

            regards, tom lane

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: transactions
Next
From: Richard_D_Levine@raytheon.com
Date:
Subject: Re: Fyracle?