Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
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
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos
Commits
0cbf44e9
Commit
0cbf44e9
authored
Mar 28, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack/erp5: use utf8mb4_unicode_ci mariadb collation
parent
23842c3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
software/erp5/test/test/test_mariadb.py
software/erp5/test/test/test_mariadb.py
+13
-1
stack/erp5/buildout.hash.cfg
stack/erp5/buildout.hash.cfg
+1
-1
stack/erp5/my.cnf.in
stack/erp5/my.cnf.in
+1
-1
No files found.
software/erp5/test/test/test_mariadb.py
View file @
0cbf44e9
...
...
@@ -103,7 +103,7 @@ class TestMariaDB(MariaDBTestCase):
cnx
.
store_result
()
cnx
.
query
(
"""
insert into test_utf8_collation values ("à"), ("あ")
insert into test_utf8_collation values ("à"), ("あ")
, ("😀")
"""
)
cnx
.
store_result
()
...
...
@@ -113,6 +113,18 @@ class TestMariaDB(MariaDBTestCase):
"""
)
self
.
assertEqual
(((
'à'
,),),
cnx
.
store_result
().
fetch_row
(
maxrows
=
2
))
cnx
.
query
(
"""
select * from test_utf8_collation where col1 = "ア"
"""
)
self
.
assertEqual
(((
'あ'
,),),
cnx
.
store_result
().
fetch_row
(
maxrows
=
2
))
cnx
.
query
(
"""
select * from test_utf8_collation where col1 = "😀"
"""
)
self
.
assertEqual
(((
'😀'
,),),
cnx
.
store_result
().
fetch_row
(
maxrows
=
2
))
class
TestMroonga
(
MariaDBTestCase
):
def
test_mroonga_plugin_loaded
(
self
):
...
...
stack/erp5/buildout.hash.cfg
View file @
0cbf44e9
...
...
@@ -42,7 +42,7 @@ md5sum = d32417746fcf671d4e86a70379815039
[template-my-cnf]
filename = my.cnf.in
md5sum =
7944ec58a2c6ee74a56219bacebfd145
md5sum =
afefa29c683b7a72aef90bb8b409302d
[template-mariadb-initial-setup]
filename = mariadb_initial_setup.sql.in
...
...
stack/erp5/my.cnf.in
View file @
0cbf44e9
...
...
@@ -68,7 +68,7 @@ server_id = {{ parameter_dict['server-id'] }}
# Force utf8 usage
character_set_server = utf8mb4
collation_server = utf8mb4_
general
_ci
collation_server = utf8mb4_
unicode
_ci
skip_character_set_client_handshake
{% if 'ssl-key' in parameter_dict -%}
...
...
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