We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b011bd9 + 266d0b0 commit ff22aacCopy full SHA for ff22aac
lib/Connection.js
@@ -3,7 +3,7 @@ const { Cursor } = require('./Cursor');
3
4
class Connection {
5
6
- CONNECTION_CLOSED_ERROR = 'Connection has already been closed!';
+ static CONNECTION_CLOSED_ERROR = 'Connection has already been closed!';
7
8
/**
9
* An open connection to the database made through an ODBC driver
@@ -26,7 +26,7 @@ class Connection {
26
get autocommit() {
27
if (!this.odbcConnection)
28
{
29
- throw new Error(CONNECTION_CLOSED_ERROR);
+ throw new Error(Connection.CONNECTION_CLOSED_ERROR);
30
}
31
return this.odbcConnection.autocommit;
32
0 commit comments