SQLSTATE[HY000]: General error: 1 near "-": syntax error

Created on 10 September 2019, over 5 years ago
Updated 16 March 2023, almost 2 years ago

On one project we use SqLite as DB for some reason.
And I had faced with next error:
"Error Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[HY000]: General error: 1 near "-": syntax error: CREATE INDEX main.restrict_ip_paths_type-path ON restrict_ip_paths (type, path);"
And looks like it's a problem with name of index in the restrict_ip/restrict_ip.install:38 file.

My suggestion

Needs to rename the index from type-path to type_path, and problem has gone.

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine aleevas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024