Skip to content

sql: PGAssertionError: schema for virtual table not found #35145

@tbg

Description

@tbg

Run the sequelize example against master:

$ npm install
$ make
> sequelize-cockroachdb-test@1.0.0 start /Users/tschottdorf/go/src/github.com/cockroachdb/examples-orms/node/sequelize
> node ./app.js

body-parser deprecated bodyParser: use individual json/urlencoded middlewares app.js:12:9
body-parser deprecated undefined extended: provide extended option node_modules/body-parser/index.js:105:29
(node:94685) DeprecationWarning: Using the automatically created return value from client.query as an event emitter is deprecated and will be removed in pg@7.0. Please see the upgrade guide at https://node-postgres.com/guides/upgrading
Unhandled rejection error: internal error: schema for virtual table not found
    at Connection.parseE (/Users/tschottdorf/go/src/github.com/cockroachdb/examples-orms/node/sequelize/node_modules/pg/lib/connection.js:567:11)
    at Connection.parseMessage (/Users/tschottdorf/go/src/github.com/cockroachdb/examples-orms/node/sequelize/node_modules/pg/lib/connection.js:391:17)
    at Socket.<anonymous> (/Users/tschottdorf/go/src/github.com/cockroachdb/examples-orms/node/sequelize/node_modules/pg/lib/connection.js:129:22)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onread (net.js:638:20)

I'm not sure if this works against past versions (haven't checked), but since this is an "assertion error" it seems that an example shouldn't be able to trigger it.

Metadata

Metadata

Assignees

Labels

C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions