Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error with Laravel 8, MariaDB 10.6 and SRID #179

Open
kakojak opened this issue Nov 16, 2021 · 2 comments
Open

Syntax error with Laravel 8, MariaDB 10.6 and SRID #179

kakojak opened this issue Nov 16, 2021 · 2 comments

Comments

@kakojak
Copy link

kakojak commented Nov 16, 2021

I wanna switch from MySQL 8.0 to MariaDB 10.6 but its not possible with version 4 of laravel-mysql-spatial.

Migration:
$table->point('coordinates',4326)->nullable();
$table->multiPolygon('boundaries',4326)->nullable();

Not possible with MariaDB -> error:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '4326, boundaries MULTIPOLYGON null srid 4326' at line 1

With MySQL 8.0 it works fine.

@H-ishak
Copy link

H-ishak commented Feb 21, 2022

MariaDB doesnt support creating a column with an SRID i think

@B2rana
Copy link

B2rana commented Dec 27, 2023

Any fix for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants