Yitzchok / subsonicproject

Automatically exported from code.google.com/p/subsonicproject
0 stars 0 forks source link

Turkish Culture Issues in SqlQuery Aggregate Generation #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If your regional settings is Turkish. You get an error message 'MİN' is not
a recognized built-in function name. 

Solution :

in ANSISqlGenerator.cs Class
in GenerateAggregateSelect(Aggregate aggregate) function
change (2 lines) Aggregate.GetFunctionType(aggregate).ToUpper() --> to -->
Aggregate.GetFunctionType(aggregate).ToUpperInvariant()

in Aggregate.cs Class
in public string WithoutAlias() function
change functionName = functionName.ToUpper(); --> to --> functionName =
functionName.ToUpperInvariant();

inpublic override string ToString() function
change functionName = functionName.ToUpper(); --> to --> functionName =
functionName.ToUpperInvariant();

Original issue reported on code.google.com by ozcanmus...@gmail.com on 12 Jul 2008 at 11:23

GoogleCodeExporter commented 9 years ago
Thanks for the report and the fixes! This has been included in Revision 473.

Original comment by canof...@gmail.com on 15 Jul 2008 at 9:27