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.

invalid SQL generates (Javascript) TypeError: Cannot destructure property `rows` of 'undefined' or 'null'.

See original GitHub issue

Seen with an older version (3.0.2), I need to test with headrevs. Recording information I have to hand now.

Invalid SQL, for example a truncated SELECT:

SELECT

Results in error in the results pane:

TypeError: Cannot destructure property `rows` of 'undefined' or 'null'.

This is with https://github.com/rickbergfalk/sqlpad/wiki/ODBC - I also need to test with another driver.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
rickbergfalkcommented, Mar 2, 2020

@MuchAdoAboutNothing I recently discovered that too, and have that (hopefully) fixed in https://github.com/rickbergfalk/sqlpad/pull/560.

0reactions
clach04commented, Dec 17, 2020

Turned out to be a node-odbc bugm resolved in https://github.com/gordonthorpe/node-odbc/tree/odbc-errmsg

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot destructure property `name` of ...
See the docs: Default function parameters allow named parameters to be initialized with default values if no value or undefined is passed.
Read more >
Cannot destructure Property of Undefined Error in JS
The "Cannot destructure property of undefined" error occurs when we try to destructure a property from a value that is equal to `undefined`....
Read more >
Error: TypeError: Cannot destructure property 'value' of ...
code: jsf.generate({ $ref: 'SampleSchema.json' }, refs) When i use the above code to generate sample data for my schema which has some $ref's...
Read more >
TypeError: Cannot destructure property `text` of 'undefined' or ...
Hi Dennis,. Node wants to say that something went wrong during the destruction of the cards[id][side] variable. cards[id][side] is undefined ...
Read more >
Typeerror Cannot Read Property Push Of Undefined
Typeerror Cannot Read Property Push Of UndefinedThis could be caused by a number of reasons: Calling the push() method on a variable without...
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