Skip to content

Tutorials - sql syntax error with PostgreSQL #12

@pongraczi

Description

@pongraczi

laravel-enso version 2.1.35, postgresql 9.6

https://github.com/laravel-enso/TutorialManager/blob/7444c3a0f13431241959fe1c52416aefe43de73c/src/app/Http/Controllers/TutorialTableController.php#L20

SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "`" LINE 2: ...nt, tutorials.title, tutorials.placement, tutorials.`order`, ^ (SQL: select tutorials.id as "dtRowId", permissions.name as permissionName, tutorials.element, tutorials.title, tutorials.placement, tutorials.`order`, tutorials.created_at, tutorials.updated_at from "tutorials" inner join "permissions" on "permissions"."id" = "tutorials"."permission_id" limit 10 offset 0)

Problem is around tutorials.order -> it should be tutorials."order"

Please check, is it a valid syntax for mysql, too, I just focuse on PostgreSQL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions