We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 738beb7 commit a383d44Copy full SHA for a383d44
index.js
@@ -2,6 +2,6 @@ module.exports = function SQL(strings) {
2
return {
3
sql: strings.join('?'), // for mysql / mysql2
4
text: strings.reduce((previous, current, i) => previous + '$' + i + current), // for postgres
5
- values: Array.prototype.slice.call(arguments, 1) // since node doesnt support argument unpacking yet
+ values: Array.from(arguments).slice(1) // since node doesnt support argument unpacking yet
6
}
7
0 commit comments