When making a CALL to the SQLAnywhere DB call mydatabase.ABCfunction(iforenames='Alun',isurname='Rowe',iemailaddress='alun@example.com',isite='ABC1231DDFFEERR') I am receiving the following error:
General error: 20018 SQL Anywhere Error -267: COMMIT/ROLLBACK not allowed within atomic operation
Select statements against the same database work fine as do read only calls.
Describe the bug
When making a CALL to the SQLAnywhere DB call mydatabase.ABCfunction(iforenames='Alun',isurname='Rowe',iemailaddress='alun@example.com',isite='ABC1231DDFFEERR') I am receiving the following error:
General error: 20018 SQL Anywhere Error -267: COMMIT/ROLLBACK not allowed within atomic operation
Select statements against the same database work fine as do read only calls.
To Reproduce
Steps to reproduce the behavior:
config/database.php
.env
app\services\MyLibrary.php
$results = DB::connection('spaceman')->statement($querystring);
Illuminate\Database\QueryException SQLSTATE[HY000]: General error: 20018 SQL Anywhere Error -267: COMMIT/ROLLBACK not allowed within atomic operation [20018] (severity 16) [call mydatabase.ABCfunction(iforenames='Alun',isurname='Schtoop',iemailaddress='alun@example.com',isite='ABC1231DDFFEERR')] (SQL: call mydatabase.ABCfunction(iforenames='Alun',isurname='Schtoop',iemailaddress='alun@example.com',isite='ABC1231DDFFEERR'))
Expected behavior
return a single result with the id of the updated record
Please note using the SQLAnywhere PHP client library we get this no problem (but it is locked to PHP 7.1)
Versions
Additional context
Add any other context about the problem here. If no have additional information, delete the section
Additional information
.