Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sqlsrv-3245242
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
sqlsrv-3245242
Commits
82ce072b
Commit
82ce072b
authored
3 years ago
by
Ken
Committed by
Beakerboy
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Resolve
#3221575
"Connect to network"
parent
d9c0dfc6
Branches
master
Tags
7.x-3.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Driver/Database/sqlsrv/Programability/ScalarValued/LPAD.sql
+3
-3
3 additions, 3 deletions
...iver/Database/sqlsrv/Programability/ScalarValued/LPAD.sql
src/Driver/Database/sqlsrv/Programability/ScalarValued/MD5.sql
+3
-3
3 additions, 3 deletions
...river/Database/sqlsrv/Programability/ScalarValued/MD5.sql
with
6 additions
and
6 deletions
src/Driver/Database/sqlsrv/Programability/ScalarValued/LPAD.sql
+
3
−
3
View file @
82ce072b
CREATE
FUNCTION
[
dbo
].[
LPAD
](
@
str
nvarchar
(
max
),
@
len
int
,
@
padstr
nvarchar
(
max
))
RETURNS
nvarchar
(
4000
)
AS
CREATE
FUNCTION
[
dbo
].[
LPAD
](
@
str
nvarchar
(
max
),
@
len
int
,
@
padstr
nvarchar
(
max
))
RETURNS
nvarchar
(
4000
)
AS
BEGIN
RETURN
left
(
@
str
+
replicate
(
@
padstr
,
@
len
),
@
len
);
END
\ No newline at end of file
RETURN
left
(
@
str
+
replicate
(
@
padstr
,
@
len
),
@
len
)
END
This diff is collapsed.
Click to expand it.
src/Driver/Database/sqlsrv/Programability/ScalarValued/MD5.sql
+
3
−
3
View file @
82ce072b
CREATE
FUNCTION
[
dbo
].[
MD5
](
@
value
varchar
(
255
))
RETURNS
varchar
(
32
)
AS
CREATE
FUNCTION
[
dbo
].[
MD5
](
@
value
varchar
(
255
))
RETURNS
varchar
(
32
)
AS
BEGIN
RETURN
SUBSTRING
(
sys
.
fn_sqlvarbasetostr
(
HASHBYTES
(
'MD5'
,
@
value
)),
3
,
32
);
END
\ No newline at end of file
RETURN
SUBSTRING
(
sys
.
fn_sqlvarbasetostr
(
HASHBYTES
(
'MD5'
,
@
value
)),
3
,
32
)
END
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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