From 01a6f3d302dd340d4af9005b50f82237f710f90c Mon Sep 17 00:00:00 2001 From: Adrien Berchet Date: Thu, 29 Feb 2024 15:55:39 +0100 Subject: [PATCH] Fix: Fix specific compilation rules for MariaDB (#495) --- geoalchemy2/admin/dialects/mysql.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geoalchemy2/admin/dialects/mysql.py b/geoalchemy2/admin/dialects/mysql.py index aea14654..ced65a01 100644 --- a/geoalchemy2/admin/dialects/mysql.py +++ b/geoalchemy2/admin/dialects/mysql.py @@ -176,19 +176,19 @@ def _compile_GeomFromWKB_MySql(element, compiler, **kw): @compiles(functions.ST_GeomFromText, "mysql") # type: ignore -@compiles(functions.ST_GeomFromEWKB, "mariadb") # type: ignore +@compiles(functions.ST_GeomFromText, "mariadb") # type: ignore def _MySQL_ST_GeomFromText(element, compiler, **kw): return _compile_GeomFromText_MySql(element, compiler, **kw) @compiles(functions.ST_GeomFromEWKT, "mysql") # type: ignore -@compiles(functions.ST_GeomFromEWKB, "mariadb") # type: ignore +@compiles(functions.ST_GeomFromEWKT, "mariadb") # type: ignore def _MySQL_ST_GeomFromEWKT(element, compiler, **kw): return _compile_GeomFromText_MySql(element, compiler, **kw) @compiles(functions.ST_GeomFromWKB, "mysql") # type: ignore -@compiles(functions.ST_GeomFromEWKB, "mariadb") # type: ignore +@compiles(functions.ST_GeomFromWKB, "mariadb") # type: ignore def _MySQL_ST_GeomFromWKB(element, compiler, **kw): return _compile_GeomFromWKB_MySql(element, compiler, **kw)