Hi,
I'm currently encountering an error msg during runtime:
==========================================
Fatal error: sqlca errcode -603
WARNING: [BEGIN: already a transaction in progress]...
==========================================
I was just calling a stored function when I encountered this msg (the function still returns the right value)...
My function is something like this:
CREATE FUNCTION getipadd (char(8))
RETURNS CHAR(25)
AS
'
DECLARE
hv_AgentCode ALIAS FOR $1;
hv_IPPORT char(25);
BEGIN
SELECT distinct ac_ipaddress||ac_port
INTO hv_IPPORT
FROM agent
WHERE agent.ac_agentcode = hv_AgentCode;
RETURN hv_IPPORT;
END;
'
LANGUAGE 'plpgsql';
I called the function in a C program (embedded sql) under an AIX system.
By the way, is there a list of sqlerror codes, the meaning of each and the action to do in case I encounter this errors?
Thanks.
I'm currently encountering an error msg during runtime:
==========================================
Fatal error: sqlca errcode -603
WARNING: [BEGIN: already a transaction in progress]...
==========================================
I was just calling a stored function when I encountered this msg (the function still returns the right value)...
My function is something like this:
CREATE FUNCTION getipadd (char(8))
RETURNS CHAR(25)
AS
'
DECLARE
hv_AgentCode ALIAS FOR $1;
hv_IPPORT char(25);
BEGIN
SELECT distinct ac_ipaddress||ac_port
INTO hv_IPPORT
FROM agent
WHERE agent.ac_agentcode = hv_AgentCode;
RETURN hv_IPPORT;
END;
'
LANGUAGE 'plpgsql';
I called the function in a C program (embedded sql) under an AIX system.
By the way, is there a list of sqlerror codes, the meaning of each and the action to do in case I encounter this errors?
Thanks.