public inbox for [email protected]  
help / color / mirror / Atom feed
From: Russell Rose | Passfield Data Systems <[email protected]>
To: [email protected] <[email protected]>
Subject: Get error when calling function that returns a table
Date: Mon, 25 Mar 2024 15:43:11 +0000
Message-ID: <VI1P191MB0638AA48C8FA4AC3CC71B5B9F2362@VI1P191MB0638.EURP191.PROD.OUTLOOK.COM> (raw)

I have got a procedure (test.sql) and this calls a function (test_rr.sql) which returns a table. I use the SQL:
Call test();

I get the error:
ERROR: invalid input syntax for type integer: "(14891,0,"VIMALBA ","P901 ",111.000000)"
CONTEXT: PL/pgSQL function test() line 13 at FETCH
SQL state: 22P02

Can anyone help please

Russell Rose



Attachments:

  [application/octet-stream] test_rr.sql (517B, 3-test_rr.sql)
  download

  [application/octet-stream] test.sql (509B, 4-test.sql)
  download

view thread (2+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Get error when calling function that returns a table
  In-Reply-To: <VI1P191MB0638AA48C8FA4AC3CC71B5B9F2362@VI1P191MB0638.EURP191.PROD.OUTLOOK.COM>

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

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