Permalink
Browse files

Fix null VarChar/NVarChar/VarBinary output parameters length

  • Loading branch information...
1 parent 97005e8 commit b862e7e18f9a7855fd687e4eb48fc7f87be5392c @patriksimek patriksimek committed Mar 31, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/data-type.coffee
View
@@ -314,7 +314,7 @@ TYPE =
length = parameter.length
else if parameter.value?
length = parameter.value.length || 1
- else if parameter.value is null
+ else if parameter.value is null and not parameter.output
length = 1
else
length = @maximumLength
@@ -363,7 +363,7 @@ TYPE =
length = parameter.length
else if parameter.value?
length = parameter.value.toString().length || 1
- else if parameter.value is null
+ else if parameter.value is null and not parameter.output
length = 1
else
length = @maximumLength
@@ -443,7 +443,7 @@ TYPE =
length = parameter.length
else if parameter.value?
length = parameter.value.toString().length || 1
- else if parameter.value is null
+ else if parameter.value is null and not parameter.output
length = 1
else
length = @maximumLength

0 comments on commit b862e7e

Please sign in to comment.