Comments - SQL_MODE=ORACLE
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
I try to create package in database BV and call it from database XX
SET sql_mode=ORACLE; DELIMITER $$ CREATE OR REPLACE PACKAGE BV.PA_TEST AS PROCEDURE SET_CONTEXT( context_id INT ); END; $$ CREATE OR REPLACE PACKAGE BODY BV.PA_TEST AS PROCEDURE SET_CONTEXT( context_id INT ) AS BEGIN SET @context_id = context_id; END; BEGIN END; $$ -- USE BV; $$ BEGIN BV.PA_TEST.SET_CONTEXT(111); END; $$ DELIMITER ;this is work fine:
this will drop error
SQL Error [1064] [42000]: (conn=14) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.SET_CONTEXT(111); END' at line 1 (conn=14) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.SET_CONTEXT(111); END' at line 1 Query is: BEGIN BV.PA_TEST.SET_CONTEXT(111); END java thread: DBeaver: Read data [BEGIN BV.PA_TEST.SET_CONTEXT(111); END]