Connection loss when FetchAll = False
Posted: Mon 22 Jan 2007 17:01
Hello, everybody
Thanks for previous help, but I have one more problem working with MySQL when I set FetchAll=False. I need FetchAll=False cause I have a lot of records.
Now when I want to make a new search with a Query I get 'Connection lost during query' at Query.Close statement. The query is even not executed.
I read about this error on this forum and I can say the following:
- the CommandTimeOut is set to 0 (infinite)
- wait_timeout on the server is 28800
- I use it in LAN, the server is in the same room as my PC. The connection is stable and fast.
- the search is very fast, so it cannot be timeout problem.
- database type is InnoDB, but I don't know for sure. Tell me how to find out this to be sure.
After I get this error and I press F9 the program runs as it should.
This happens only with FetchAll=False
Thanks
Thanks for previous help, but I have one more problem working with MySQL when I set FetchAll=False. I need FetchAll=False cause I have a lot of records.
Now when I want to make a new search with a Query I get 'Connection lost during query' at Query.Close statement. The query is even not executed.
I read about this error on this forum and I can say the following:
- the CommandTimeOut is set to 0 (infinite)
- wait_timeout on the server is 28800
- I use it in LAN, the server is in the same room as my PC. The connection is stable and fast.
- the search is very fast, so it cannot be timeout problem.
- database type is InnoDB, but I don't know for sure. Tell me how to find out this to be sure.
After I get this error and I press F9 the program runs as it should.
This happens only with FetchAll=False
Thanks