Recent

Author Topic: Really closing database connections  (Read 2001 times)

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1315
Re: Really closing database connections
« Reply #15 on: April 26, 2023, 12:20:13 pm »
This one works :)

1. Use a dedicated, native connection and don't use any high-level functions of the connection (or transaction) you extracted it from.
2. Try all transactions until they succeed, or a fatal error is returned.
3. Read the statusses until nil;
4. Don't forget to collect the error message.

And, finally: format the fields correctly (I had a comma as decimal separator in my floats).

 8)

 

TinyPortal © 2005-2018