Skip to content

Causes SQL errors when only readonly properties are specified #8

@mandrewpowers

Description

@mandrewpowers

I marked a property modified as read only in my model and went to test it by executing PUT {"modified": 1} but it threw SQL errors. After enabling DEBUG on the mysql connector I realized it just removed the column set in the statement but then the query was invalid:

loopback:connector:mysql SQL: UPDATEtasksSET WHEREid=?, params: [1]

As you can see there are no columns being SET in between SET and WHERE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions