Agregar o importar FUNCTION ( import FUNCTION)

23 views
Skip to first unread message

desarrollo...@gmail.com

unread,
Apr 5, 2015, 12:33:44 PM4/5/15
to npgsq...@googlegroups.com
Hola, gracias Francisco Figueiredo por esta excelente herramienta.

Estoy utilizando lo siguiente:

Postgresql Server 9.0.18
Npgsql DDEX (2.2.5)
Visual Studio Prof 2013 Sp4


Tengo la siguiente función:


CREATE OR REPLACE FUNCTION "uspLogin"(
pass character varying,
users character varying)
RETURNS integer AS
$BODY$
DECLARE RETORNO integer;
BEGIN
SELECT COUNT(*) INTO RETORNO FROM "USUARIO" WHERE IDUSER=$2 and CLAUSR=$1;
RETURN RETORNO;

END;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
ALTER FUNCTION "uspLogin"(character varying, character varying)
OWNER TO postgres;


Y cuando realizo el mapeo desde Visual Studio, la generación de las tablas se realiza de forma exitosa, pero para las funciones me muestra el siguiente mensaje:


Error 6046: Unable to generate function import return type of the store function 'uspLogin'. The store function will be ignored and the function import will not be generated.


Quisiera conocer la forma de realizar la importación de forma correcta.

Saludos y gracias
Reply all
Reply to author
Forward
0 new messages