Skip to content

Copy/Paste results are out of order #8210

Closed
@jjwillis

Description

Issue Type: Bug

When copying results to the query window, the pasted data is not in the same order as listed in the results. Steps to reproduce:

declare @table table (num int)
declare @i int = 0
while @i<5
begin
insert into @table values (1), (2), (3)
set @i=@i+1
end
select num from @table order by num

Next, Copy the results from the grid and paste them into the query window or any text editor. The pasted values are out of order. When I do this, this is the pasted results:

1
1
3
3
3
3
3
1
1
1
2
2
2
2
2

I expect to see the pasted results to mimic the query results as shown below:

1
1
1
1
1
2
2
2
2
2
3
3
3
3
3

Similar copy/paste items: #7189, #2955, #1388, #26
Azure Data Studio version: azuredatastudio 1.13.0 (cacd481, 2019-11-02T00:40:05.147Z)
OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (8 x 3408)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.93GB (21.03GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (2)
Extension Author (truncated) Version
powershell ms- 2019.9.0
profiler Mic 0.9.0

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions