question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'name' column type parsing method is not implemented

See original GitHub issue

I got uncaught error when execute query

error: Uncaught Error: Don't know how to parse column type: 19
► decode.ts:212:13

212       throw new Error(`Don't know how to parse column type: ${typeOid}`);
                ^

    at decodeText (decode.ts:212:13)
    at decode (decode.ts:220:12)
    at _parseDataRow (query.ts:35:24)
    at handleDataRow (query.ts:47:28)
    at _preparedQuery (connection.ts:505:18)

and the query is

SELECT * FROM information_schema.tables

According to documents, PostgreSQL has ‘name’ special character types and that type is internal type for object names. https://www.postgresql.org/docs/current/datatype-character.html#DATATYPE-CHARACTER-SPECIAL-TABLE

However in deno-postgres, ‘name’ column type is impleted in here https://github.com/buildondata/deno-postgres/blob/7a27fd94c7b765ca256b3da96a9de94f380e6bbe/oid.ts#L5

but parsing method is not implemented. https://github.com/buildondata/deno-postgres/blob/7a27fd94c7b765ca256b3da96a9de94f380e6bbe/decode.ts#L182-L213


deno-postgres v0.3.4 deno 0.26.0 postgres 12.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bartlomiejucommented, Dec 13, 2019

@bartlomieju OK, I will open PR ASAP. Would I fix test? Apparently there is no test to decoding strings.

Well… better tests are still a TODO, so I’m ok with a PR without a test for now

Read more comments on GitHub >

github_iconTop Results From Across the Web

System.NotImplementedException error - Stack Overflow
This error means that the page you are loading does not implement the GetPersonnel method which is accessed by its code during the...
Read more >
getCLOB not implemented for class oracle.jdbc.driver ...
Issue parsing Oracle SQL BLOB type (ERROR: Invalid column type: getCLOB not implemented for class oracle.jdbc.driver.T4CLongAccessor).
Read more >
How to Handle the Incompatible Types Error in Java - Rollbar
The Java incompatible types error happens when a value assigned to a variable or returned by a method is incompatible with the one...
Read more >
NotImplementedException Class (System) - Microsoft Learn
The NotImplementedException exception is thrown when a particular method, get accessor, or set accessor is present as a member of a type but...
Read more >
11 parse() methods in Java with Examples - CodeGym
Parsing in its most general sense is the extraction of the necessary information from some piece of data, most often textual data.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found