You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Only selected cells should be included in Copy as... SQL statement(s) #1929
When I select one or multiple cells (ctrl/cmd+click) with the "standard" Copy function, only the selected cell values are copied, which is as it should be.
However, when using Copy as... > INSERT Statement(s) or UPDATE Statement(s), all columns from the rows in which I made the selection are included in those SQL statements, instead of only the selected cell values.
Steps to reproduce
Open the data view of a table with multiple columns
Select one or several cells (using Cmd/Ctrl+clisk for multiple selection)
Right-click, then select Copy as... > INSERT Statement(s) or UPDATE Statement(s)
The generated statements will contain values from all columns, instead of only those selected
Expected behavior
When I have a table like:
column_a
column_b
column_c
column_d
val_1.a
val_1.b
val_1.c
val_1.d
val_2.a
val_2.b
val_2.c
val_2.d
val_3.a
val_3.b
val_3.c
val_3.d
If I select only val_2.c and val_2.d and use Copy as... > INSERT Statement(s)
Currently, I'd get:
Activity
fix(datagrid): scope Copy as transforms to selected cells (#1929) (#1930