mysql_error handling,

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;
	}

The TEXT macro only works for string literals. It just glues a L on top of the string literal to make it a wchar_t.

Here are the string functions:

You should be able to use ANSI_TO_TCHAR() to go the other direction.