-
Sylvain .
- PowerServer Obsolete (2020 or older)
- Thursday, 22 November 2018 07:36 PM UTC
I have put an example of the code use to duplicate the problem at the end of the message.
when I execute it as PB it is running fine, when I tried to execute it as WEB it will execute
up to the INSERT where it will give me the following error in a message box:
Error 10999
Nested transactions are not supported.
any INSERT, UPDATE, DELETE will give me the same error.
I'm running this using a MySQL client 5.3 on a MySQL 8 Database.
Anyone have an idea on why this is occurring, any help would be appreciated.
TIA
Sylvain
Code in the Open event of the Application object:
SQLCA.DBMS = "ODBC"
SQLCA.DBParm = "ConnectString='DSN=MySQL'"
Connect Using SQLCA;
ls_SQL = "SET SESSION AUTOCOMMIT = 0"
EXECUTE IMMEDIATE :ls_SQL USING SQLCA;
EXECUTE IMMEDIATE :ls_SQL USING SQLCA;
EXECUTE IMMEDIATE :ls_SQL USING SQLCA;
ls_SQL = "SELECT fn_DB_Connected_PB(-2, ' ', ' ', ' ', 'PB', 'E', ' ')"
DECLARE l_cursor DYNAMIC CURSOR FOR SQLSA ;
PREPARE SQLSA FROM :ls_sql USING SQLCA ;
OPEN DYNAMIC l_cursor ;
FETCH l_cursor INTO :ls_REP ;
CLOSE l_cursor ;
ROLLBACK Using SQLCA;
DISConnect Using SQLCA;
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.