Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 91fc76be
authored
Oct 07, 2015
by
Tore Klock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for passing domain option to tedious.
1 parent
771df892
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
lib/dialects/mssql/connection-manager.js
lib/dialects/mssql/connection-manager.js
View file @
91fc76b
...
...
@@ -27,7 +27,6 @@ ConnectionManager.prototype.connect = function(config) {
userName
:
config
.
username
,
password
:
config
.
password
,
server
:
config
.
host
,
/* domain: 'DOMAIN' */
options
:
{
port
:
config
.
port
,
database
:
config
.
database
...
...
@@ -40,6 +39,12 @@ ConnectionManager.prototype.connect = function(config) {
delete
connectionConfig
.
options
.
port
;
}
// The 'tedious' driver needs domain property to be in the main Connection config object
if
(
config
.
dialectOptions
.
domain
)
{
connectionConfig
.
domain
=
config
.
dialectOptions
.
domain
;
delete
config
.
dialectOptions
.
domain
;
}
Object
.
keys
(
config
.
dialectOptions
).
forEach
(
function
(
key
)
{
connectionConfig
.
options
[
key
]
=
config
.
dialectOptions
[
key
];
});
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment