Inserting Integers will using plpgsql... - Mailing list pgsql-general

From Scott Holmes
Subject Inserting Integers will using plpgsql...
Date
Msg-id 200105172145.OAA11564@scotts.mynetwork.net
Whole thread Raw
List pgsql-general
I figured it out but it's not pretty.

    EXECUTE ''INSERT INTO journal (j_date,casenmbr,peopnmbr,evntnmbr,''
      ||''j_descr,j_rate,j_quant,j_status) VALUES (''
      ||quote_literal(jdate)
      ||'',''
      ||quote_literal(text(casenmbr))
      ||'',''
      ||quote_literal(text(peopnmbr))
      ||'',''
      ||quote_literal(text(param))
      ||'',''
      ||quote_literal(erec.ev_title)
      ||'',''
      ||quote_literal(text(erec.ev_rate))
      ||'',''
      ||quote_literal(text(erec.ev_amount))
      ||'',''
      ||quote_literal(jstatus)
      ||'')'';





pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: yet another stupid question (index coverage)
Next
From: "Ed Vazquez, Jr."
Date:
Subject: Problem with libpq.so