Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Cannot insert/update JSONB value #27

@zhanybek-sadvakassov

Description

@zhanybek-sadvakassov

JSONB isn't correctly parsed for a SQL query

Argument with 'object' type should be parsed to string ofr inserts and updates, but databless tries to use JS object

Example, where jsonb attribute should be stringified JSON '[ "ARTIST" ]', but instead it is a js object
knex:client acquired connection from pool: __knexUid1 +18ms
knex:query BEGIN; trx2 +22ms
knex:bindings undefined trx2 +22ms
knex:query update "users" set "full_name" = $1, "profile_tags" = $2 where "users"."id" = $3 returning * trx2 +10ms
knex:bindings [ 'test 2', [ 'ARTIST' ], '1' ] trx2 +10ms
knex:query ROLLBACK trx2 +20ms

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