Raised This Month: $51 Target: $400
 12% 

[MySQL] TConnect and other connect functions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 02-24-2016 , 11:17   [MySQL] TConnect and other connect functions
Reply With Quote #1

Quote:
It is not necessary to use this to use threaded queries. However, if you don't (or you mix threaded/non-threaded queries), you should see SQL_LockDatabase().
(it's written here)

Does this mean i can connect to database with

SQL_Connect
SQL_ConnectEx
SQL_TConnect
SQL_ConnectCustom
SQL_DefConnect

to use "Threaded Query"?
__________________

Last edited by Starbish; 02-24-2016 at 11:18.
Starbish is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 02-24-2016 , 11:58   Re: [MySQL] TConnect and other connect functions
Reply With Quote #2

The method you use for getting the database handle doesn't matter, it can be threaded or non-threaded. You can use threaded OR non-threaded queries on the returned handle. You do not want to use both threaded and non-threaded queries on a single handle. If you need to use both threaded and non-threaded queries in your plugin then you will want to create two separate connections (one connection for purely threaded queries and the other for non-threaded queries).

See this post as well:
https://forums.alliedmods.net/showpo...3&postcount=16
hlstriker is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode