Skip to content

pg-query-stream fails with 7.5.0 #1742

@toddself

Description

@toddself

Using pg 7.4.3, works great.

Upgraded to 7.5.0 this morning and getting this stack trace:

/usr/lib/node_modules/@scriptollc/search-crawler/node_modules/pg/lib/client.js:277
    if (self.activeQuery.name) {
                         ^

TypeError: Cannot read property 'name' of null
    at Connection.<anonymous> (/usr/lib/node_modules/@scriptollc/search-crawler/node_modules/pg/lib/client.js:277:26)
    at emitOne (events.js:116:13)
    at Connection.emit (events.js:211:7)
    at Socket.<anonymous> (/usr/lib/node_modules/@scriptollc/search-crawler/node_modules/pg/lib/connection.js:124:12)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at TCP.onread (net.js:597:20)

The query being run is a very simple

format(`SELECT * FROM %I`, tableName)

Doesn't matter which table in our database we use.

Happy to assist with anything you might need!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions