mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 12:35:59 +00:00
fix: update mssql parameters query to match ParameterInfo
This commit is contained in:
@@ -2,12 +2,13 @@ module.exports = `
|
||||
SELECT
|
||||
o.object_id as parentObjectId,
|
||||
p.object_id AS parameterObjectId,
|
||||
o.name as pureName,
|
||||
CASE
|
||||
WHEN p.name IS NULL OR LTRIM(RTRIM(p.name)) = '' THEN
|
||||
'@Output'
|
||||
ELSE
|
||||
p.name
|
||||
END AS pureName,
|
||||
END AS parameterName,
|
||||
TYPE_NAME(p.user_type_id) AS dataType,
|
||||
p.max_length AS charMaxLength,
|
||||
p.precision AS precision,
|
||||
|
||||
@@ -2,7 +2,8 @@ module.exports = `
|
||||
SELECT
|
||||
o.object_id as parentObjectId,
|
||||
p.object_id as objectId,
|
||||
p.name AS pureName,
|
||||
o.name as pureName,
|
||||
p.name AS parameterName,
|
||||
TYPE_NAME(p.user_type_id) AS dataType,
|
||||
p.max_length AS charMaxLength,
|
||||
p.precision AS precision,
|
||||
|
||||
Reference in New Issue
Block a user