Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PostgreSQL 11 - Procedure support

  • PostgreSql Version : 11 Beta 4
  • Npgsql Version : v4.0.3

I want to test Store Prodecure of PostgreSql, but I get the error.

"42809: get_customer_list() is a procedure"

My CommandType

CommandType.StoredProcedure

Does Npgsql support PostgreSql 11 Store Prodecure ?

like image 960
Korkut Düzay Avatar asked May 08 '26 03:05

Korkut Düzay


1 Answers

Please see this answer in the Npgsql FAQ.

Long story short, you can call stored procedures but not with CommandType.StoredProcedure. Simply make a regular command with the text CALL my_stored_procedure().

like image 81
Shay Rojansky Avatar answered May 09 '26 20:05

Shay Rojansky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!