Hello,
I’m trying to pass the value of the mysql_error to blueprint array.
But the QueryResult.Emplace(TEXT (mysql_error(&mysql))); give me the error :* identifier “Lmysql_error” is undefined.*
how i convert mysql_error to put in TArray<FString>.?
if (!mysql_real_connect(&mysql, TCHAR_TO_ANSI(*Host), TCHAR_TO_ANSI(*Username), TCHAR_TO_ANSI(*Password), TCHAR_TO_ANSI(*Database), 0, NULL, 0))
{
//fprintf(stderr, "Failed to connect to database: Error: %s
",
//mysql_error(&mysql));
QueryResult.Add(TEXT("Failed to connect to database "));
QueryResult.Emplace(TEXT (mysql_error(&mysql)));
completed = false;
}