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 b063d617
authored
Jul 14, 2015
by
Jim O'Brien
Committed by
Jan Aagaard Meier
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bug] Fix
https://github.com/sequelize/sequelize/issues/3674
1 parent
ef4be30d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
lib/transaction.js
lib/transaction.js
View file @
b063d61
...
@@ -168,17 +168,16 @@ Transaction.prototype.prepareEnvironment = function() {
...
@@ -168,17 +168,16 @@ Transaction.prototype.prepareEnvironment = function() {
).
then
(
function
(
connection
)
{
).
then
(
function
(
connection
)
{
self
.
connection
=
connection
;
self
.
connection
=
connection
;
self
.
connection
.
uuid
=
self
.
id
;
self
.
connection
.
uuid
=
self
.
id
;
if
(
self
.
sequelize
.
constructor
.
cls
)
{
self
.
sequelize
.
constructor
.
cls
.
set
(
'transaction'
,
self
);
}
}).
then
(
function
()
{
}).
then
(
function
()
{
return
self
.
begin
();
return
self
.
begin
();
}).
then
(
function
()
{
}).
then
(
function
()
{
return
self
.
setDeferrable
();
return
self
.
setDeferrable
();
}).
then
(
function
()
{
}).
then
(
function
()
{
return
self
.
setIsolationLevel
();
return
self
.
setIsolationLevel
();
}).
then
(
function
()
{
}).
then
(
function
()
{
if
(
self
.
sequelize
.
constructor
.
cls
)
{
self
.
sequelize
.
constructor
.
cls
.
set
(
'transaction'
,
self
);
}
return
self
.
setAutocommit
();
return
self
.
setAutocommit
();
});
});
};
};
...
...
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