We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9285875 commit 88ce80bCopy full SHA for 88ce80b
lib/index.js
@@ -51,8 +51,8 @@ function Postgres(url, options) {
51
, listeners = {}
52
, typeArrayMap = {}
53
, files = {}
54
- , isInsert = /(^|\))\s*insert\s*into\s/i
55
- , isSelect = /(^|\))\s*select\s/i
+ , isInsert = /(^|[^)(])\s*insert\s+into\s+[^\s]+\s*$/i
+ , isSelect = /(^|[^)(])\s*select\s*$/i
56
57
function postgres(xs, ...args) {
58
return query({}, getConnection(), xs, args)
0 commit comments