Skip to content

Commit 367958d

Browse files
LUKASZ104LUKASZ104
authored andcommitted
Make sure that order of the columns is kept when rewriting an order and nothing was removed.
1 parent f248f88 commit 367958d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

source/expectations/data_values/ut_cursor_details.tpb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ create or replace type body ut_cursor_details as
204204
row_number() over (partition by parent_name,transformed_name order by column_position) as new_position, xml_valid_name,
205205
column_name, column_type, column_type_name, column_schema,
206206
column_len, column_precision ,column_scale ,is_sql_diffable, is_collection,value(x) col_info
207-
from table(l_result.cursor_columns_info) x) loop
207+
from table(l_result.cursor_columns_info) x
208+
order by x.column_position asc
209+
) loop
208210
l_column := i.col_info;
209211
l_column.column_position := i.new_position;
210212
l_column_tab.extend;

0 commit comments

Comments
 (0)