Add prefix for ext/odbc persistent resource hash

In order to make sure that it doesn't accidentally clash with other resource types
This commit is contained in:
Máté Kocsis 2024-05-15 09:16:46 +02:00
parent 446ff6a742
commit 43ac009c87
No known key found for this signature in database
GPG key ID: FD055E41728BF310

View file

@ -2300,7 +2300,7 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
}
char *hashed_details;
size_t hashed_details_len = spprintf(&hashed_details, 0, "%d_%s_%s_%s_%s_%d", persistent, ODBC_TYPE, db, uid, pwd, cur_opt);
size_t hashed_details_len = spprintf(&hashed_details, 0, "odbc_%d_%s_%s_%s_%s_%d", persistent, ODBC_TYPE, db, uid, pwd, cur_opt);
try_and_get_another_connection: