Skip to content

Commit 21d2772

Browse files
committed
2 parents cf8c3f0 + d2308f1 commit 21d2772

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
fast_finish: true
5050
allow_failures:
5151
- env: srv=build v=10.6
52+
- env: srv=xpand
5253
include:
5354
- env: srv=mariadb v=10.2 local=1
5455
- env: srv=mariadb v=10.3 local=1
@@ -75,6 +76,8 @@ jobs:
7576
env: srv=mysql v=5.7
7677
- if: type = push AND fork = false
7778
env: srv=mysql v=8.0
79+
- if: type = push AND fork = false
80+
env: srv=xpand
7881

7982
notifications:
8083
email: false

testing/test/base_test.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ def is_skysql():
1616
def is_maxscale():
1717
return os.environ.get('srv') == "maxscale" or os.environ.get('srv') == 'skysql-ha'
1818

19+
20+
def is_xpand():
21+
if os.environ.get('srv') == "xpand":
22+
return True
23+
conn = create_connection()
24+
version = conn.get_server_version()
25+
del conn
26+
return "Xpand" in version
27+
1928
def is_mysql():
2029
mysql_server = 1
2130
conn = create_connection()
@@ -34,4 +43,11 @@ def create_connection(additional_conf=None):
3443
else:
3544
c = {key: value for (key, value) in (list(default_conf.items()) + list(
3645
additional_conf.items()))}
37-
return mariadb.connect(**c)
46+
conn = mariadb.connect(**c)
47+
version = conn.get_server_version()
48+
# https://jira.mariadb.org/browse/XPT-266
49+
if "Xpand" in version or os.environ.get('srv') == "xpand":
50+
cursor = conn.cursor()
51+
cursor.execute("SET NAMES UTF8")
52+
del cursor
53+
return conn

0 commit comments

Comments
 (0)