Skip to content

Postgres Json type error on save #677

Description

@bytedevzone

When try to save json type data using PostgreSQL add slashes on json encoded string in wrong format, below mentioned actual data to save and converted data while debugging Query.php

Actual data : '{"value":"Supplier 1","id":"4c49455250505355f00001e774e18ed2"}'

Converted to : '{"value":"Supplier 1","id":"4c49455250505355f00001e774e18ed2"}' and raise an error.

It works after commenting the line 423 in /system/Database/Query.php

$escapedValue = preg_quote(trim($escapedValue, $this->db->escapeChar), '|');

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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