pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris White (cjwhite) <cjwhite@cisco.com>
To: pgsql-admin@postgresql.org
Subject: Problem inserting data into 7.4.2 table
Date: Thu, 8 Apr 2004 15:44:10 -0700
Message-ID: <001601c41dbb$02ba2520$77976b80@amer.cisco.com> (raw)

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
values('PERSONAL00000000000000000000000',0,null,10000,60,true,0,30,true,
10,0,1081462504500);

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




view thread (4+ messages)  latest in thread

Message-ID: <001601c41dbb$02ba2520$77976b80@amer.cisco.com>
Permalink:  ../001601c41dbb$02ba2520$77976b80@amer.cisco.com/
Also on:    postgresql.org/message-id/001601c41dbb$02ba2520$77976b80@amer.cisco.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: cjwhite@cisco.com
  Subject: Re: Problem inserting data into 7.4.2 table
  In-Reply-To: <001601c41dbb$02ba2520$77976b80@amer.cisco.com>
  References: <001601c41dbb$02ba2520$77976b80@amer.cisco.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox