Skip to content

Commit 6896bc9

Browse files
authored
Reduce the short string cap
1 parent b0db0c1 commit 6896bc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/pg/lib/utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ const escapeLiteral = function (str) {
177177
return "''"
178178
}
179179
let hasBackslash = false
180-
if (str.length < 15) {
180+
if (str.length < 13) {
181+
// This methid is a bit faster for short strings
181182
let escaped = "'"
182183

183184
for (let i = 0; i < str.length; i++) {

0 commit comments

Comments
 (0)