Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
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
Steven Gueguen
slapos
Commits
43f21c73
Commit
43f21c73
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
8a1f4101
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 @
43f21c73
...
...
@@ -100,7 +100,7 @@ class TestMariaDB(MariaDBTestCase):
cnx
.
store_result
()
cnx
.
query
(
"""
insert into test_utf8_collation values ("à"), ("あ")
insert into test_utf8_collation values ("à"), ("あ")
, ("😀")
"""
)
cnx
.
store_result
()
...
...
@@ -110,6 +110,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 @
43f21c73
...
...
@@ -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 @
43f21c73
...
...
@@ -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