MySQL/MariaDB Error: Cannot destructure property 'name' of 'undefined' as it is undefined #723
incansvl posted onGitHub
OS: Windows 10 Pro 64 bit MariaDB: 10.3.12 VSCode: 1.50.1 SQLTools: 0.23.0 SQLTools MySQL/MariaDB: 0.2.0
Description A ~250 line (with comments) SQL script was working correctly in both the MySQL console (mysql command) and in SQLTools (SQLT).
I then added a simple "print status" type command in the script, of the form-
SELECT CONCAT(
'Output written to: ', @OutputDirectory, @FileName
) AS '';
Originally I had a syntax error, so the script was failing in both environments, but having fixed the error, the script runs ok in the console but continues to fail when run from VSCode with the error:
Cannot destructure property 'name' of 'undefined' as it is undefined
Note: If I try to copy+paste the text of the console error into this bug report the result is: [object Object]
not sure if that is significant?
To Reproduce (see attachment)
Expected behavior Script runs and writes the text to the console:
+-------------------------------------------------------------------------------------+
| |
+-------------------------------------------------------------------------------------+
| Output written to: C:/Windows/Temp/der2_cciRefset_RefsetDescriptorDelta_GB_20201024 |
+-------------------------------------------------------------------------------------+