Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
fb61eacd
Commit
fb61eacd
authored
5 years ago
by
Ajit Jagtap
Browse files
Options
Downloads
Plain Diff
Merge branch 'kunalt_fixes' into 'devbranch'
Bug Fixes See merge request
!182
parents
9897266f
2e569d57
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!188
V2 : mep deployemet28 april2020
,
!182
Bug Fixes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
routebuildermdl/routebuilder_fasthttp.go
+3
-4
routebuildermdl/routebuilder_fasthttp.go
routebuildermdl/routebuilder_gin.go
+7
-5
routebuildermdl/routebuilder_gin.go
with
10 additions
and
9 deletions
routebuildermdl/routebuilder_fasthttp.go
+
3
−
4
View file @
fb61eacd
...
...
@@ -78,7 +78,7 @@ func commonHandler(c *routing.Context, isRestricted, isRoleBased, heavyDataActiv
responseDataObj
.
Error
=
err
.
Error
()
responseDataObj
.
ErrorCode
=
errormdl
.
MYSQLERROR
}
break
case
constantmdl
.
SQLSERVER
:
loggermdl
.
LogError
(
"SQLSERVER Transaction Rollbacked"
)
err
=
ab
.
SQLServerTXN
.
Rollback
()
...
...
@@ -86,11 +86,10 @@ func commonHandler(c *routing.Context, isRestricted, isRoleBased, heavyDataActiv
responseDataObj
.
Error
=
err
.
Error
()
responseDataObj
.
ErrorCode
=
errormdl
.
MYSQLERROR
}
break
}
default
:
loggermdl
.
LogError
(
"Invalid database type while rollback transaction"
)
break
}
}
}
...
...
This diff is collapsed.
Click to expand it.
routebuildermdl/routebuilder_gin.go
+
7
−
5
View file @
fb61eacd
...
...
@@ -87,7 +87,7 @@ func commonHandler(c *gin.Context, isRestricted, isRoleBased, heavyDataActivity
responseDataObj
.
Error
=
err
.
Error
()
responseDataObj
.
ErrorCode
=
errormdl
.
MYSQLERROR
}
break
case
constantmdl
.
SQLSERVER
:
loggermdl
.
LogError
(
"SQLSERVER Transaction Rollbacked"
)
err
=
ab
.
SQLServerTXN
.
Rollback
()
...
...
@@ -95,7 +95,9 @@ func commonHandler(c *gin.Context, isRestricted, isRoleBased, heavyDataActivity
responseDataObj
.
Error
=
err
.
Error
()
responseDataObj
.
ErrorCode
=
errormdl
.
MYSQLERROR
}
break
default
:
loggermdl
.
LogError
(
"Invalid database type while rollback transaction"
)
}
}
...
...
@@ -117,7 +119,7 @@ func commonHandler(c *gin.Context, isRestricted, isRoleBased, heavyDataActivity
responseDataObj
.
Result
=
result
responseDataObj
.
ErrorCode
=
errormdl
.
NOERROR
}
break
case
constantmdl
.
SQLSERVER
:
loggermdl
.
LogError
(
"SQLSERVER Transaction Commit"
)
err
=
ab
.
SQLServerTXN
.
Commit
()
...
...
@@ -128,10 +130,10 @@ func commonHandler(c *gin.Context, isRestricted, isRoleBased, heavyDataActivity
responseDataObj
.
Result
=
result
responseDataObj
.
ErrorCode
=
errormdl
.
NOERROR
}
break
default
:
loggermdl
.
LogError
(
"Invalid database type"
)
break
}
}
else
{
responseDataObj
.
Result
=
result
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets