MySQL and SQLITE
Here I go again, I've read somewhere that I don't remember that using SQL_ThreadQuery in a plugin that uses Mysql and SQLITE at the same time would be problematic (and in fact it is), would there be any possibility of using it now in 2021?
Below I leave a small example of error. PHP Code:
Code:
L 07/05/2021 - 01:13:37: [SQLITE] Invalid query handle: 2 Then they will tell me "put a 1 second task between them", yes it works, but there are more functions that can occur in the middle of the game that there is no way to control and set tasks, so I'm looking for a "solution". |
Re: MySQL and SQLITE
Try creating the tuples first before initiating any threads and use set_affinity after creaing the tuples.
|
Re: MySQL and SQLITE
Quote:
Edit: I found where I read the threadqueries issue (in the include of course...), but I really couldn't understand this explanation. Code:
@note Intuitive programmers will note that this causes problems for PHP Code:
Code:
L 07/05/2021 - 10:10:33: Start of error session. |
Re: MySQL and SQLITE
|
Re: MySQL and SQLITE
Quote:
PHP Code:
|
Re: MySQL and SQLITE
here give this a try and show the outputs
Spoiler
|
Re: MySQL and SQLITE
Quote:
PHP Code:
|
Re: MySQL and SQLITE
code edited removed "SQL_GetQueryString(Query,QueryError,charsmax (QueryError))" from the code, since having it inside threader function callback doesn't make alot of sense to me.
test again and see if the error still occurs. |
Re: MySQL and SQLITE
Quote:
|
Re: MySQL and SQLITE
Quote:
Spoiler
|
All times are GMT -4. The time now is 06:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.