Re: Error class not found
От | Darren Ferguson |
---|---|
Тема | Re: Error class not found |
Дата | |
Msg-id | Pine.LNX.4.10.10205291556250.2469-100000@thread.crystalballinc.com обсуждение исходный текст |
Ответ на | Error class not found ("Remi" <gemegesola@retemail.es>) |
Список | pgsql-general |
The sequence does not exist. Create the sequence and it will be fine Darren Ferguson On Wed, 29 May 2002, Remi wrote: > Y have import a table of PostgreSQL 7.0.3 in the PostgreSQL 7.2.1 with > PhpPgAdmin and a file.sql below: > ----------------------------------------------------------- > CREATE TABLE "mensajes" ( > "mensajeid" int4 DEFAULT nextval('mensajes_mensajeid_seq'::text) NOT > NULL, > "usuarioid" int4 NOT NULL, > "fechacreacion" timestamp NOT NULL, > "asunto" varchar(255) NOT NULL, > "cuerpo" text NOT NULL, > CONSTRAINT "mensajes_pkey" PRIMARY KEY ("mensajeid") > ); > CREATE INDEX "mensajes_usuarioid_key" ON "mensajes" ("usuarioid"); > /* -------------------------------------------------------- > Dumping data for table "mensajes" > -------------------------------------------------------- */ > INSERT INTO "mensajes" ("usuarioid", "fechacreacion", "asunto", "cuerpo") > VALUES(35, 1, '2002-04-21 04:58:54+02', 'aa', 'a'); > ... / ... > INSERT INTO "mensajes" ("usuarioid", "fechacreacion", "asunto", "cuerpo") > VALUES(87, 9, '2002-05-23 19:14:38+02', 'Re: Mensaje de prueba', 'De remi'); > ----------------------------------------------------------- > > The structure is : > ----------------------------------------------------------- > Field Type Length Not Null Default > mensajeid int4 4 Yes > nextval('mensajes_mensajeid_seq'::text) > usuarioid int4 4 Yes > fechacreacion timestamptz 8 Yes > asunto varchar 255 Yes > cuerpo text var Yes > > Keyname Unique Primary Field > mensajes_pkey Yes Yes mensajeid > mensajes_usuarioid_key No No usuarioid > ----------------------------------------------------------- > > When y use a INSERT query: > INSERT INTO mensajes (usuarioid, asunto, cuerpo, fechacreacion) > VALUES (35, 'sd', 'sd', '2002-05-29 21:22:34') > > y have this error > ERROR: pg_aclcheck: class "mensajes_mensajeid_seq" not found > > y have this with all table width the nextval('xxx_xxx_seq'::text) option > > Does any one help me please ? > > Thank you > > Remi > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) >
В списке pgsql-general по дате отправления: