3183 Alexander Barkov 2009-10-19
Bug#43207 wrong LC_TIME names for romanian locale
A contributed patch by Andrei Boros (SCA signed).
- Fixing locale definition file
- Adding tests
modified:
sql/sql_locale.cc
3182 Ramil Kalimullin 2009-10-18 [merge]
Fix for bug#47963: Wrong results when index is used
Problem: using null microsecond part in a WHERE condition
(e.g. WHERE date_time_field <= "YYYY-MM-DD HH:MM:SS.0000")
may lead to wrong results due to improper DATETIMEs
comparison in some cases.
Fix: comparing DATETIMEs as strings we must trim trailing 0's
in such cases.
@ mysql-test/r/innodb_mysql.result
Fix for bug#47963: Wrong results when index is used
- test result.
@ mysql-test/t/innodb_mysql.test
Fix for bug#47963: Wrong results when index is used
- test case.
@ sql/item.cc
Fix for bug#47963: Wrong results when index is used
- comparing DATETIMEs as strings we must trim trailing 0's in the
microsecond part to ensure
'YYYY-MM-DD HH:MM:SS.000' == 'YYYY-MM-DD HH:MM:SS'
modified:
mysql-test/r/innodb_mysql.result
mysql-test/t/innodb_mysql.test
sql/item.cc
=== modified file 'sql/sql_locale.cc'
--- a/sql/sql_locale.cc 2008-12-23 14:21:01 +0000
+++ b/sql/sql_locale.cc 2009-10-19 08:41:52 +0000
@@ -1309,9 +1309,9 @@ static const char *my_locale_month_names
static const char *my_locale_ab_month_names_ro_RO[13] =
{"ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","nov","dec", NullS };
static const char *my_locale_day_names_ro_RO[8] =
- {"Luni","Marţi","Miercuri","Joi","Vineri","SîmbĂtĂ","DuminicĂ", NullS };
+ {"Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă","Duminică", NullS };
static const char *my_locale_ab_day_names_ro_RO[8] =
- {"Lu","Ma","Mi","Jo","Vi","Sî","Du", NullS };
+ {"Lu","Ma","Mi","Jo","Vi","Sâ","Du", NullS };
static TYPELIB my_locale_typelib_month_names_ro_RO =
{ array_elements(my_locale_month_names_ro_RO)-1, "", my_locale_month_names_ro_RO, NULL };
static TYPELIB my_locale_typelib_ab_month_names_ro_RO =
Attachment: [text/bzr-bundle] bzr/bar@mysql.com-20091019084152-je30g0c0boytdquj.bundle
| Thread |
|---|
| • bzr push into mysql-5.1-bugteam branch (bar:3182 to 3183) Bug#43207 | Alexander Barkov | 19 Oct |