Skip site navigation (1) Skip section navigation (2)

Problem inserting data into 7.4.2 table

From: "Chris White (cjwhite)" <cjwhite(at)cisco(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Problem inserting data into 7.4.2 table
Date: 2004-04-08 22:44:10
Message-ID: 001601c41dbb$02ba2520$ (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
I have just upgraded to 7.4.2 from 7.2.1 and I am having problems
inserting data into a database table that worked just fine under 7.2.1.

I have a table defined as follows:

create table vm_mailbox
MailboxId varchar(64) not null,
MailboxType integer not null default 0,
Description varchar(64) ,
MailboxSize integer ,
MessageSize integer ,
Tutorial boolean not null default true,
TotalMessageTime integer ,
MessageExpiryTime integer ,
Enabled boolean not null default true,
GreetingType integer not null default 10,
OrphanedTime bigint not null default 0,
LastAccessed bigint ,
ZeroOutNumber varchar(32) ,
primary key (MailboxId)

When I try to do the following insert into the table 

insert into vm_mailbox

I get the following error:

ERROR:  integer out of range

What is the problem? Is it complaining about the value for LastAccessed?
According to the 7.2 User Guide a bigint can have a value between
-92223372036854775808 and 92223372036854775807.

Chris White

pgsql-admin by date

Next:From: Gregory S. WilliamsonDate: 2004-04-08 23:35:14
Subject: Re: Problem inserting data into 7.4.2 table
Previous:From: halDate: 2004-04-08 21:32:19
Subject: Multiple disks

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group