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

Error in Laravel 11 with Maria DB: Incorrect parameter count in the call to native function 'ST_SRID' #31

Open
jangaraev opened this issue Sep 30, 2024 · 0 comments

Comments

@jangaraev
Copy link

I have the same issue like in #3 on Maria DB 11.0 with L11's mariadb driver.

Laravel: 11.25.0
PHP: 8.3.6
Package: 2.0.0

SQLSTATE[42000]: Syntax error or access violation:
1582 Incorrect parameter count in the call to native function 'ST_SRID'
(Connection: mariadb, ...

Documentation of Maria DB states that it doesn't need the 2nd argument to ST_SRID: https://mariadb.com/kb/en/st_srid/

Affects almost all the scopes of HasSpatial trait.

To me personally I temporarily solved by copying over the scopes to the model class directly.


Thanks guys for your development and such a useful and well maintained package!

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

1 participant