Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f956ea37
Commit
f956ea37
authored
Nov 06, 2009
by
Alexander Nozdrin
Browse files
Options
Browse Files
Download
Plain Diff
Manual-merge from mysql-trunk-merge.
parents
112d9fd9
ce9f6dda
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
2 deletions
+40
-2
mysql-test/r/locale.result
mysql-test/r/locale.result
+26
-0
mysql-test/t/locale.test
mysql-test/t/locale.test
+12
-0
sql/sql_locale.cc
sql/sql_locale.cc
+2
-2
No files found.
mysql-test/r/locale.result
View file @
f956ea37
...
...
@@ -63,4 +63,30 @@ SET lc_time_names=sr_RS;
SELECT format(123456.789, 3, 'sr_RS');
format(123456.789, 3, 'sr_RS')
123456.789
#
# Bug#43207 wrong LC_TIME names for romanian locale
#
SET NAMES utf8;
SET lc_time_names=ro_RO;
SELECT DATE_FORMAT('2001-01-01', '%w %a %W');
DATE_FORMAT('2001-01-01', '%w %a %W')
1 Lu Luni
SELECT DATE_FORMAT('2001-01-02', '%w %a %W');
DATE_FORMAT('2001-01-02', '%w %a %W')
2 Ma Marţi
SELECT DATE_FORMAT('2001-01-03', '%w %a %W');
DATE_FORMAT('2001-01-03', '%w %a %W')
3 Mi Miercuri
SELECT DATE_FORMAT('2001-01-04', '%w %a %W');
DATE_FORMAT('2001-01-04', '%w %a %W')
4 Jo Joi
SELECT DATE_FORMAT('2001-01-05', '%w %a %W');
DATE_FORMAT('2001-01-05', '%w %a %W')
5 Vi Vineri
SELECT DATE_FORMAT('2001-01-06', '%w %a %W');
DATE_FORMAT('2001-01-06', '%w %a %W')
6 Sâ Sâmbătă
SELECT DATE_FORMAT('2001-01-07', '%w %a %W');
DATE_FORMAT('2001-01-07', '%w %a %W')
0 Du Duminică
End of 5.4 tests
mysql-test/t/locale.test
View file @
f956ea37
...
...
@@ -41,4 +41,16 @@ SHOW VARIABLES LIKE 'lc_messages';
SET
lc_time_names
=
sr_RS
;
SELECT
format
(
123456.789
,
3
,
'sr_RS'
);
--
echo
#
--
echo
# Bug#43207 wrong LC_TIME names for romanian locale
--
echo
#
SET
NAMES
utf8
;
SET
lc_time_names
=
ro_RO
;
SELECT
DATE_FORMAT
(
'2001-01-01'
,
'%w %a %W'
);
SELECT
DATE_FORMAT
(
'2001-01-02'
,
'%w %a %W'
);
SELECT
DATE_FORMAT
(
'2001-01-03'
,
'%w %a %W'
);
SELECT
DATE_FORMAT
(
'2001-01-04'
,
'%w %a %W'
);
SELECT
DATE_FORMAT
(
'2001-01-05'
,
'%w %a %W'
);
SELECT
DATE_FORMAT
(
'2001-01-06'
,
'%w %a %W'
);
SELECT
DATE_FORMAT
(
'2001-01-07'
,
'%w %a %W'
);
--
echo
End
of
5.4
tests
sql/sql_locale.cc
View file @
f956ea37
...
...
@@ -1506,9 +1506,9 @@ static const char *my_locale_month_names_ro_RO[13] =
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
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment