invalid SQL generates (Javascript) TypeError: Cannot destructure property `rows` of 'undefined' or 'null'.
See original GitHub issueSeen 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:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@MuchAdoAboutNothing I recently discovered that too, and have that (hopefully) fixed in https://github.com/rickbergfalk/sqlpad/pull/560.
Turned out to be a node-odbc bugm resolved in https://github.com/gordonthorpe/node-odbc/tree/odbc-errmsg