Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/Connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { Cursor } = require('./Cursor');

class Connection {

CONNECTION_CLOSED_ERROR = 'Connection has already been closed!';
static CONNECTION_CLOSED_ERROR = 'Connection has already been closed!';

/**
* An open connection to the database made through an ODBC driver
Expand All @@ -26,7 +26,7 @@ class Connection {
get autocommit() {
if (!this.odbcConnection)
{
throw new Error(CONNECTION_CLOSED_ERROR);
throw new Error(Connection.CONNECTION_CLOSED_ERROR);
}
return this.odbcConnection.autocommit;
}
Expand Down
Loading