Quote:
Originally Posted by rainin
As you see there is problem with sqlx connect. So i dont think that debug helps.
|
With debug enabled you get more details in error logs (including line number in code!). When you edit plugin ALWAYS enable debug!
It's not a problem with sqlx connect, but SQL_FreeHandle. There are several of them used in your code. With debug enabled, you would know which one is causing the problem.
Looking at the code I can see some mistakes.
1) You tried to change SqlConnection name to MySQL_Connection, but you didn't change it everywhere.
2) In this piece of code you use invalid g_SqlTuple. You pass SQL_MakeStdTuple() directly to SQL_Connect and never assign anything to g_SqlTuple.
3) Don't use SQL_FreeHandle(Query) in IgnoreHandle or any threaded query handlers.
__________________