Received: from jasper.southwind.net (swprenzl@jasper.southwind.net [206.53.103.7]) by hub.org (8.9.1/8.9.1) with ESMTP id MAA22918 for ; Thu, 7 Jan 1999 12:07:12 -0500 (EST) (envelope-from swprenzl@jasper.southwind.net) Received: from localhost (swprenzl@localhost) by jasper.southwind.net (8.8.8/8.8.8) with SMTP id LAA08949; Thu, 7 Jan 1999 11:06:52 -0600 (CST) Date: Thu, 7 Jan 1999 11:06:52 -0600 (CST) From: Larry Bottorff To: George Moga cc: SQL PostgreSQL Subject: Re: [SQL] int4 to varchar conversion In-Reply-To: <3694DBB4.CCF4DB9D@flex.ro> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Tried your suggestion, but. . . . => create table seq_varchar (field1 varchar(4), field2 text, CONSTRAINT pk_sq PRIMARY KEY (field1)); => insert into seq_varchar values (NEXTVAL ( 'seq_test' )::text, 'blablabla'); ERROR: parser: attribute 'field1' is of type 'varchar' but expression is of type 'text' Is this a version or settings issue? We're not 6.4, I know that much. . . Larry Bottorff SouthWind Internet Access, Inc. System Programmer 120 S. Market St. Suite 300 swprenzl@southwind.net Wichita, KS 67202 --------------------------------------------------------------------- In Wichita:(316)263-7964 Elsewhere:1-877-525-7964