23 lines
733 B
Plaintext
23 lines
733 B
Plaintext
![]() |
=== Related: RSPEC-3613
|
||
|
|
||
|
=== Related: RSPEC-3614
|
||
|
|
||
|
=== On 2017-07-20T15:26:19Z 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 2017-08-07T15:03:24Z Pierre-Yves Nicolas Wrote:
|
||
|
\[~massimo.paladin] Why minor? Such code triggers a failure at execution time.
|
||
|
|