This message appears when a statement which updates information in the database is executed in a transaction that was specified as read-only (using the SET TRANSACTION statement).
To make changes to the database, a new transaction - set to
read-write
- will have to be started. End the current read-only transaction with a ROLLBACK; and then begin issuing the database-altering SQL statements (since a new transaction is read-write by default). Alternatively, use the SET TRANSACTION READ WRITE command to end the current transaction with an implicit ROLLBACK and start a new transaction in read-write mode.