Community
Participate
Working Groups
The Table Data Editor UI classes currently assume that the edit columns and rows map to SELECT * FROM <tablename>. The UI has code like this: editor.getTable().getColumns() That is, the UI classes work with the columns of the source table of the query defining the edit, rather than the result columns of the query defining the edit. The Table Data Editor core actually maintains a field for the result columns, "resultColumns", so that assumption is not needed. However, this field is not exposed in the API. The result columns field needs to be exposed in the TableData2 interface, and the Table Data Editor UI classes need to use it when accessing the edit columns rather than getting the edit columns directly from the source table.
Created attachment 169626 [details] Patch for plugins o.e.d.sqltools.data.core and o.e.d.sqltools.data.ui
Checked in change, tagged to v201005241300.