Skip to content

Commit 01a6f3d

Browse files
Fix: Fix specific compilation rules for MariaDB (#495)
1 parent aaea9fd commit 01a6f3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

geoalchemy2/admin/dialects/mysql.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,19 +176,19 @@ def _compile_GeomFromWKB_MySql(element, compiler, **kw):
176176

177177

178178
@compiles(functions.ST_GeomFromText, "mysql") # type: ignore
179-
@compiles(functions.ST_GeomFromEWKB, "mariadb") # type: ignore
179+
@compiles(functions.ST_GeomFromText, "mariadb") # type: ignore
180180
def _MySQL_ST_GeomFromText(element, compiler, **kw):
181181
return _compile_GeomFromText_MySql(element, compiler, **kw)
182182

183183

184184
@compiles(functions.ST_GeomFromEWKT, "mysql") # type: ignore
185-
@compiles(functions.ST_GeomFromEWKB, "mariadb") # type: ignore
185+
@compiles(functions.ST_GeomFromEWKT, "mariadb") # type: ignore
186186
def _MySQL_ST_GeomFromEWKT(element, compiler, **kw):
187187
return _compile_GeomFromText_MySql(element, compiler, **kw)
188188

189189

190190
@compiles(functions.ST_GeomFromWKB, "mysql") # type: ignore
191-
@compiles(functions.ST_GeomFromEWKB, "mariadb") # type: ignore
191+
@compiles(functions.ST_GeomFromWKB, "mariadb") # type: ignore
192192
def _MySQL_ST_GeomFromWKB(element, compiler, **kw):
193193
return _compile_GeomFromWKB_MySql(element, compiler, **kw)
194194

0 commit comments

Comments
 (0)