wvanbergen / node-vertica

Pure javascript Vertica database client. Except it is written in CoffeeScript.
MIT License
44 stars 30 forks source link

How to handle multiple queries? #32

Closed protobi closed 10 years ago

protobi commented 10 years ago

Just tried multiple queries in one statement, e.g. below, and got the error Error: Cannot handle multi-queries with a callback!. What's the right way to go about that?

     SELECT DISTINCT x FROM table LIMIT 10; SELECT COUNT(DISTINCT x) FROM table;
wvanbergen commented 10 years ago

Just run them separately :)

I am not planning to work on supporting multiple SQL queries in one call, but feel free to do so yourself if you are interested in it.

wvanbergen commented 10 years ago

Closing this. Feel free to reopen if you are going to work on this.