Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
I've found this problem using Sybase 12.
As you know, it uses worker processes for performing table scans, what is good.
But this simple example (imagine field_1 is not part of and index thus, it'll launch worker processes)
set rowcount 1
select @var_name = field_1 from TABLE_NAME
select @var_name
Sometimes returns a value and sometimes not. It seems it has some problems assigning the result to a value or whatever.
However, this work fine:
set rowcount 1
select @var_name = field_1 from TABLE_NAME (parallel 1)
select @var_name
And what is really weird, this always returns a row too:
set rowcount 1
select field_1 from TABLE_NAME
Any documentation on this? Explanations?
Regards,
Roberto
I've found this problem using Sybase 12.
As you know, it uses worker processes for performing table scans, what is good.
But this simple example (imagine field_1 is not part of and index thus, it'll launch worker processes)
set rowcount 1
select @var_name = field_1 from TABLE_NAME
select @var_name
Sometimes returns a value and sometimes not. It seems it has some problems assigning the result to a value or whatever.
However, this work fine:
set rowcount 1
select @var_name = field_1 from TABLE_NAME (parallel 1)
select @var_name
And what is really weird, this always returns a row too:
set rowcount 1
select field_1 from TABLE_NAME
Any documentation on this? Explanations?
Regards,
Roberto