Skip to content

CommandType is missing "CREATE" #488

@predetermined

Description

@predetermined

Describe the bug

Doing queryObject("create table test()") results in

 QueryObjectResult {
    query: Query {
      args: [],
      camelCase: undefined,
      fields: undefined,
      result_type: 1,
      text: "create table test();"
    },
    command: "CREATE",
    rowCount: NaN,
    warnings: [],
    columns: undefined,
    rows: []
  }

but CommandType is missing "CREATE".

To Reproduce

Steps to reproduce the behavior:

  1. queryObject("create table test()")

Expected behavior

CommandType contains "CREATE".

Screenshots

/

Additional context

If applicable, add any other context about the problem here.

  • deno-postgres version: v0.19.3
  • deno version:

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