Skip to content

Commit 5915574

Browse files
authored
fix: nullable variable (#471)
1 parent 3d4e619 commit 5915574

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"lock": false,
33
"name": "@bartlomieju/postgres",
4-
"version": "0.19.1",
4+
"version": "0.19.2",
55
"exports": "./mod.ts"
66
}

query/decode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export function decode(
226226
return decoderFunc(strValue, column.typeOid, parseArray);
227227
} // if no custom decoder is found and the oid is for an array type, check if there is
228228
// a decoder for the base type and use that with the array parser
229-
else if (oidType.includes("_array")) {
229+
else if (oidType?.includes("_array")) {
230230
const baseOidType = oidType.replace("_array", "") as OidType;
231231
// check if the base type is in the Oid object
232232
if (baseOidType in Oid) {

0 commit comments

Comments
 (0)