I am no expert, but, I will try to answer this to the best of my knowledge.
If you wish to get error message in some other language apart from
ENGLISH US, then, the LANGID would actually be useful. Still, if you
wish to provide LANGID support in your storage engine, you can define
a session variable to hold the LANGID as explained here:
use it as THDVAR(thd,<the_name_of_your_variable>) wherever required.
On 29 November 2012 17:43, Shaukat Mahmood Ahmad <write@stripped> wrote:
> Dear All,
> How I can get LocaleID / LANGID for current thread (thd), / query, I
> want to use this LocaleID / LANGID with FormatMessage() Windows API
> to get error message against error code for my windows based storage
> Shaukat Mahmood Ahmad
> MySQL Internals Mailing List
> For list archives: http://lists.mysql.com/internals
> To unsubscribe: http://lists.mysql.com/internals