question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

is ExecuteProc() ready for postgreSQL?

See original GitHub issue

stored procedure:

CREATE OR REPLACE PROCEDURE "Schema1"."sp_Test"(
	"Id" integer)
LANGUAGE 'plpgsql'
AS $BODY$
BEGIN
END
$BODY$;

test:

//int exec = db.Execute("CALL \"Schema1\".\"sp_Test\"(@p0)", new DataParameter("p0", 1)); //work
var input1 = new DataParameter("Id", 1, DataType.Int32) { Direction = ParameterDirection.Input };
int proc = db.ExecuteProc("\"Schema1\".\"sp_Test\"", input1); //not work

Error: 42809: Schema1.sp_Test(Id => integer) is a procedure Hint: To call a procedure, use CALL

does that mean i cannot use ExecuteProc() for postgre?

Environment details

linq2db version: 3.2.3 Database: PostgreSQL 12.1 .NET Framework: 4.7.2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
MaceWinducommented, Feb 27, 2023

Issue is still open

0reactions
MaceWinducommented, May 1, 2023

Closing it, as I’m not aware of issues with pgsql procedures execution support

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation: 15: pg_isready
pg_isready is a utility for checking the connection status of a PostgreSQL database server. The exit status specifies the result of the connection...
Read more >
Documentation: 15: PREPARE
You can see all prepared statements available in the session by querying the pg_prepared_statements system view. Examples. Create a prepared statement for an ......
Read more >
Documentation: 15: CALL
However, arguments matching OUT parameters are not evaluated, so it's customary to just write NULL for them. (Writing something else for an OUT...
Read more >
Documentation: 15: EXECUTE
Note that (unlike functions) prepared statements are not overloaded based on the type or number of their parameters; the name of a prepared...
Read more >
Documentation: 8.1: libpq - C Library
libpq is a set of library functions that allow client programs to pass queries to the PostgreSQL backend server and to receive the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found