Merge pull request #188 from Arkshine/feature/mysql-rw-and-default-timeout

Establish a default timeout for MySQL connectivity
This commit is contained in:
Vincent Herbet
2015-01-30 15:56:40 +01:00
5 changed files with 41 additions and 20 deletions

View File

@ -393,6 +393,11 @@ stock Handle:SQL_MakeStdTuple(timeout = 0)
get_cvar_string("amx_sql_pass", pass, 31);
get_cvar_string("amx_sql_type", set_type, 11);
get_cvar_string("amx_sql_db", db, 127);
if (timeout <= 0)
{
timeout = get_cvar_num("amx_sql_timeout");
}
SQL_GetAffinity(get_type, 12);