I base connected to mysql, every time i save a record, an error appears
Here’s what I have already done:
-
i have set the timeout from 60secs to
600secs on Connection Pool. -
i have the code in macro, before oForm.insertrow() or .updaterow()
oDatasource = ThisDatabaseDocument.CurrentController If Not (oDatasource.isConnected()) Then oDatasource.connect()
But after the error dialog appears, and clicking OK, when i .insertrow/.updaterow again, the record is saved. It may seem alright clicking OK for now, but its somewhat annoying in the long run.
Is there a way around this?