Bug #117107 | DB Notebook: Retrieve Data with SELECT Statements and print result | ||
---|---|---|---|
Submitted: | 5 Jan 19:26 | Modified: | 6 Jan 8:36 |
Reporter: | Marcel Marcel | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Shell VSCode Extension | Severity: | S2 (Serious) |
Version: | v1.19.0 | OS: | Windows |
Assigned to: | CPU Architecture: | Any |
[5 Jan 19:26]
Marcel Marcel
[6 Jan 7:20]
MySQL Verification Team
Hello Marcel Marcel, Thank you for the report and feedback. Verified as described. regards, Umesh
[6 Jan 8:36]
Mike Lischke
Posted by developer: You are using the wrong API. The method runSql actually is async and does not take a callback: const result = await runSql( "SELECT Name as name," + "District as district, Population as pop FROM world.city WHERE Name = 'Kabul' " ); print(result); If you really need a callback use: runSqlWithCallback( "SELECT Name as name," + "District as district, Population as pop FROM world.city WHERE Name = 'Kabul' ", (ResultSetRows) => { print(ResultSetRows); } );