Inserts using plpgsql - Further

From: Scott Holmes <sholmes(at)pacificnet(dot)net>
To: pgsql-general(at)postgresql(dot)org (PG-General)
Subject: Inserts using plpgsql - Further
Date: 2001-05-17 19:32:56
Message-ID: 200105171932.MAA10907@scotts.mynetwork.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Well, it does not seem to be a problem with multiple fields but with fields
that are integers.

INSERT INTO journal (j_date,casenmbr,j_descr,j_rate,j_status) VALUES
(jdate,cnmbr,erec.ev_title,erec.ev_rate,jstatus);

Fails, but

INSERT INTO journal (j_date,j_descr,j_rate,j_status) VALUES
(jdate,erec.ev_title,erec.ev_rate,jstatus);

Succeeds. The difference is casenmbr, an integer. j_rate is a decimal value,
j_date is a date and the others are character fields.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Daniel Wickstrom 2001-05-17 20:11:56 Re: outer join fails with error - solaris only
Previous Message Brent R. Matzelle 2001-05-17 19:07:02 Re: What's the best front end/client under MS Windows?