Search Postgresql Archives

Re: Large Object => invalid input syntax for integer: ""

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/6/05 4:58 am, "grupos" <grupos@xxxxxxxxxxxxxx> wrote:

> 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: ""
> 
> Which value I can put on the default of the lo to solve this ? I alreday
> tryed -1, 0, 1, null but nothing works...
> 
> Why this problem?

I think the problem is nothing to do with lo, you are trying to insert an
integer into a varchar field, try

INSERT INTO test VALUES ('1');

HTH

adam


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux