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 36e4fa6 commit 364c3ebCopy full SHA for 364c3eb
cjs/src/connection.js
@@ -735,7 +735,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
735
}
736
737
function addArrayType(oid, typarray) {
738
- if (!!options.parsers[typarray] && !!options.serializers[typarray]) return;
+ if (!!options.parsers[typarray] && !!options.serializers[typarray]) return
739
const parser = options.parsers[oid]
740
options.shared.typeArrayMap[oid] = typarray
741
options.parsers[typarray] = (xs) => arrayParser(xs, parser, typarray)
cjs/tests/index.js
@@ -8,7 +8,7 @@ const crypto = require('crypto')
8
const postgres = require('../src/index.js')
9
const delay = ms => new Promise(r => setTimeout(r, ms))
10
11
-const rel = x => require("path").join(__dirname, x)
+const rel = x => require('path').join(__dirname, x)
12
const idle_timeout = 1
13
14
const login = {
@@ -137,10 +137,10 @@ t('Array of Date', async() => {
137
return [now.getTime(), (await sql`select ${ sql.array([now, now, now]) } as x`)[0].x[2].getTime()]
138
})
139
140
-t("Array of Box", async () => [
+t('Array of Box', async() => [
141
'(3,4),(1,2);(6,7),(4,5)',
142
- (await sql`select ${ '{(1,2),(3,4);(4,5),(6,7)}' }::box[] as x`)[0].x.join(";")
143
-]);
+ (await sql`select ${ '{(1,2),(3,4);(4,5),(6,7)}' }::box[] as x`)[0].x.join(';')
+])
144
145
t('Nested array n2', async() =>
146
['4', (await sql`select ${ sql.array([[1, 2], [3, 4]]) } as x`)[0].x[1][1]]
deno/src/connection.js
@@ -739,7 +739,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
742
743
744
745
deno/tests/index.js
@@ -139,10 +139,10 @@ t('Array of Date', async() => {
147
148
@@ -2480,4 +2480,4 @@ t('Insert array with undefined transform', async() => {
2480
]
2481
2482
2483
-;window.addEventListener("unload", () => Deno.exit(process.exitCode))
+;window.addEventListener('unload', () => Deno.exit(process.exitCode))
src/connection.js
@@ -736,7 +736,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
tests/index.js
0 commit comments