question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It would be nice in the readme to specify that the function query (of the driver) needs a array of string and not a string. ex.: var sql = require(‘mssql’); sql.connect(settings) sql.query(“select * from table”) //does not work sql.query([“select * from table”]) //works sql.query `select * from table` //works

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:8

github_iconTop GitHub Comments

2reactions
M-Zubercommented, May 30, 2018

worse if you have the sql in a variable then

const sqlString = 'select * from table';
sql.query`${sqlString}`;

doesn’t work either

1reaction
patriksimekcommented, Jul 4, 2018

Fixed and to be released in 4.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL SELECT Statement - W3Schools
The SQL SELECT Statement. The SELECT statement is used to select data from a database. The data returned is stored in a result...
Read more >
An Introductory SQL Tutorial: How to Write Simple Queries
Learn how to get started with this beginner's guide to writing simple SQL queries.
Read more >
SQL Querying for Beginners Tutorial - YouTube
SQL Querying for Beginners TutorialExercise Files: https://bit.ly/3n5sr0GSQL Express Download ...
Read more >
SQL - SELECT Query - Tutorialspoint
The SQL SELECT statement is used to fetch the data from a database table which returns this data in the form of a...
Read more >
What are the Best Ways to Write a SQL Query? - GeeksforGeeks
An SQL Query is used to retrieve the required data from the database. However, there may be multiple SQL queries that yield the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found