Replicate a stored procedure with BOOLEAN arguments to a non-Oracle replicate database.
To replicate a stored procedure defined by these PL/SQL statements:
CREATE PROCEDURE boolproc (a IN BOOLEAN, b INT) AS
BEGIN
IF (a = true) THEN
DBMS_OUTPUT.PUT_LINE('True');
ELSE
DBMS_OUTPUT.PUT_LINE('False or NULL');
ENDIF;
END;
The stored procedure is replicated when it is executed at the primary database:
EXECUTE boolproc(true,1);
However, the boolproc procedure at the replicate Adaptive Server Enterprise will be invoked with an integer value instead of a BOOLEAN argument:
boolproc 1, 1 go