rspec/rules/S4103/tsql/comments-and-links.adoc

23 lines
736 B
Plaintext
Raw Normal View History

=== is related to: S3613
=== is related to: S3614
=== on 20 Jul 2017, 15:26:19 Pierre-Yves Nicolas wrote:
According to the Microsoft https://docs.microsoft.com/en-us/sql/t-sql/language-elements/fetch-transact-sql[reference for FETCH]:
____
The number of variables must match the number of columns in the cursor select list.
____
The code can be compiled with no issue, for example in a stored procedure. The following error is raised at runtime:
----
Msg 16924, Level 16, State 1, Line 61
Cursorfetch: The number of variables declared in the INTO list must match that of selected columns.
----
=== on 7 Aug 2017, 15:03:24 Pierre-Yves Nicolas wrote:
\[~massimo.paladin] Why minor? Such code triggers a failure at execution time.