Added MariaDB support for LINESTRING and POLYGON.