denodrivers / postgres

PostgreSQL driver for Deno
https://denodrivers.github.io/postgres
MIT License
608 stars 97 forks source link

`CommandType` is missing `"CREATE"` #488

Closed predetermined closed 2 months ago

predetermined commented 3 months ago

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.