You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I caught error that error, when call con.query function
const MapdCon = require('mapd-connector')
const con = new MapdCon()
.host('**IP**')
.port(9092)
.protocol('http')
.dbName('**DBname**')
.user('**userName**')
.password('**pass**')
.connect((err, con) => {
if (err) console.log(err)
con.getTablesAsync().then(res => console.log(res)) // <--- it is works properly
con.query("SELECT * FROM table')", // <---- not working!
(err, result) => {
if (err) console.log(err)
console.log(result)
})
})
/home/node_modules/mapd-connector/dist/node-connector.js:31524
throw e; // re-throw the error to Rx
^
Error: No result to process
at /home/node_modules/mapd-connector/dist/node-connector.js:31857:18
at MapdCon.processResults (/home/node_modules/mapd-connector/dist/node-connector.js:30363:35)
at MapdCon.query [as queryAsync] (/home/node_modules/mapd-connector/dist/node-connector.js:30860:24)
at MapdCon.connector.(anonymous function) [as query] (/home/node_modules/mapd-connector/dist/node-connector.js:31516:25)
at MapdCon.host.port.protocol.dbName.user.password.connect (/home/index.js:12:21)
at /home/node_modules/mapd-connector/dist/node-connector.js:30469:12
at /home/node_modules/mapd-connector/dist/node-connector.js:1993:16
at process._tickCallback (internal/process/next_tick.js:61:11)
The text was updated successfully, but these errors were encountered:
@whitehander Hi! It seems like there might be a syntax issue with your query - instead of "SELECT * FROM table')", it should probably be "SELECT * FROM table". Could you try that?
I caught error that error, when call
con.query
functionThe text was updated successfully, but these errors were encountered: