Skip to content

Commit 049d9b1

Browse files
committed
feat: safe checking for activeQuery
1 parent 54eb0fa commit 049d9b1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/pg/lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ class Client extends EventEmitter {
385385
// if a prepared statement has a name and properly parses
386386
// we track that its already been executed so we don't parse
387387
// it again on the same client
388-
if (this.activeQuery.name) {
388+
if (this.activeQuery?.name) {
389389
this.connection.parsedStatements[this.activeQuery.name] = this.activeQuery.text
390390
}
391391
}

packages/pg/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "pg",
3-
"version": "8.12.0",
2+
"name": "so-pg",
3+
"version": "8.12.1",
44
"description": "PostgreSQL client - pure javascript & libpq with the same API",
55
"keywords": [
66
"database",
@@ -11,10 +11,10 @@
1111
"postgresql",
1212
"rdbms"
1313
],
14-
"homepage": "https://github.com/brianc/node-postgres",
14+
"homepage": "https://github.com/dok/node-postgres",
1515
"repository": {
1616
"type": "git",
17-
"url": "git://github.com/brianc/node-postgres.git",
17+
"url": "git@github.com:dok/node-postgres.git",
1818
"directory": "packages/pg"
1919
},
2020
"author": "Brian Carlson <[email protected]>",

0 commit comments

Comments
 (0)