Skip to content

Support for sub-queries in "values" helper does not work well with JSON columns #190

@dchekanov

Description

@dchekanov
{
  type: 'insert',
  table: 'test',
  values: {
    jsonb_column: {
      type: 'I am not a function'
    }
  }
}

Results in:

insert into "test" ("jsonb_column") values ((I am not a function( )))
-- Values:
-- []

Expected:

insert into "test" ("jsonb_column") values ($1)
-- Values:
-- [
--   { "type": "I am not a function" }
-- ]

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