Skip to content

Commit

Permalink
Merge pull request mortenbra#60 from datRedHeadedGuy/get_worksheets_l…
Browse files Browse the repository at this point in the history
…ist-returns-sheets-in-order-of-creation-#44

Update ora/ooxml_util_pkg.pkb to fix mortenbra#44
  • Loading branch information
mortenbra authored Sep 22, 2019
2 parents 6acaf5c + da26641 commit c8f024b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions ora/ooxml_util_pkg.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ begin
Who Date Description
------ ---------- --------------------------------
JMW 02.03.2016 Created
JMW 31.03.2017 Added a 'state' attribute to t_xlsx_sheet_properties
JMW 12.04.2018 Removed the ORDER BY clause

*/

Expand All @@ -87,9 +89,9 @@ begin
columns
r_id varchar2(255) path '@r:id',
sheetid number path '@sheetId',
name varchar2(31) path '@name' ) xml
where xml.r_id is not null
order by xml.sheetid;
name varchar2(31) path '@name',
state varchar2(10) path '@state' ) xml
where xml.r_id is not null;

return l_returnvalue;

Expand Down
4 changes: 3 additions & 1 deletion ora/ooxml_util_pkg.pks
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ as
------ ---------- --------------------------------
MBR 25.01.2011 Created
MBR 11.07.2011 Added Powerpoint-specific features
JMW 31.03.2017 Added a 'state' attribute to t_xlsx_sheet_properties

*/

Expand Down Expand Up @@ -81,7 +82,8 @@ as
type t_xlsx_sheet_attributes is record (
r_id varchar2(255),
sheetid number,
name varchar2(31)
name varchar2(31),
state varchar2(10)
);

type t_xlsx_sheet_properties is table of t_xlsx_sheet_attributes index by pls_integer;
Expand Down

0 comments on commit c8f024b

Please sign in to comment.