PgSqlDataSource UPDATE Command not working with stored proc
Posted: Thu 24 Sep 2009 03:31
the function that I have in the postgres database has the following signature...
-------------------
CREATE OR REPLACE FUNCTION su_employee(empname character varying, empcode character varying, empaddress character varying, employeeid integer)
RETURNS integer AS
------------------
I am using pgsqldatasource, by setting
------------
UpdateCommand="su_employee" UpdateCommandType="StoredProcedure"
-------------
but when I go to edit the row, it comes up with a weird error.
-----------------
function su_employee(unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown) does not exist
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Devart.Data.PostgreSql.PgSqlException: function su_employee(unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown) does not exist
----------------
Observe..Observe... my function had only 4 parameters... WHY DOES THE ERROR MESSAGE SHOW that MY FUCTION has 8 parameters... I don't understand...!!!
-------
helper...
_____
CREATE OR REPLACE FUNCTION su_employee(empname character varying, empcode character varying, empaddress character varying, employeeid integer)
RETURNS integer AS
$BODY$
UPDATE employee set employeename=$1,employeecode=$2,employeeaddress=$3 WHERE employeeid=$4;
SELECT $4 as updatedemployeeid;
$BODY$
LANGUAGE 'sql' VOLATILE
COST 100;
-------------------
' />
' />
' />
' Width="100" />
' Width="100" />
' Width="150" />
' Width="40" />
------------------------------
"
DeleteCommand="sd_employee" DeleteCommandType="StoredProcedure"
InsertCommand="si_employee" InsertCommandType="StoredProcedure"
OldValuesParameterFormatString="Original_{0}"
ProviderName=""
SelectCommand="sp_employee" SelectCommandType="StoredProcedure"
UpdateCommand="su_employee" UpdateCommandType="StoredProcedure"
CancelSelectOnNullParameter="False">
-------------------
CREATE OR REPLACE FUNCTION su_employee(empname character varying, empcode character varying, empaddress character varying, employeeid integer)
RETURNS integer AS
------------------
I am using pgsqldatasource, by setting
------------
UpdateCommand="su_employee" UpdateCommandType="StoredProcedure"
-------------
but when I go to edit the row, it comes up with a weird error.
-----------------
function su_employee(unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown) does not exist
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Devart.Data.PostgreSql.PgSqlException: function su_employee(unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown) does not exist
----------------
Observe..Observe... my function had only 4 parameters... WHY DOES THE ERROR MESSAGE SHOW that MY FUCTION has 8 parameters... I don't understand...!!!
-------
helper...
_____
CREATE OR REPLACE FUNCTION su_employee(empname character varying, empcode character varying, empaddress character varying, employeeid integer)
RETURNS integer AS
$BODY$
UPDATE employee set employeename=$1,employeecode=$2,employeeaddress=$3 WHERE employeeid=$4;
SELECT $4 as updatedemployeeid;
$BODY$
LANGUAGE 'sql' VOLATILE
COST 100;
-------------------
' />
' />
' />
' Width="100" />
' Width="100" />
' Width="150" />
' Width="40" />
------------------------------
"
DeleteCommand="sd_employee" DeleteCommandType="StoredProcedure"
InsertCommand="si_employee" InsertCommandType="StoredProcedure"
OldValuesParameterFormatString="Original_{0}"
ProviderName=""
SelectCommand="sp_employee" SelectCommandType="StoredProcedure"
UpdateCommand="su_employee" UpdateCommandType="StoredProcedure"
CancelSelectOnNullParameter="False">