Skip to content

Commit 629d3c7

Browse files
committed
Fixed installation order to eliminate compilation error warning
Removed ampersand symbol as some IDEs (PLSQL Developer) recognize it as a parameter to be defined Removed unnecessary drop as ut_event_listener is already several lines before Fixes utPLSQL#657
1 parent bd78b6f commit 629d3c7

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

source/expectations/data_values/ut_compound_data_value.tpb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,15 @@ create or replace type body ut_compound_data_value as
132132
l_result integer;
133133
--the XML stylesheet is applied on XML representation of data to exclude column names from comparison
134134
--column names and data-types are compared separately
135+
--user CHR(38) instead of ampersand to eliminate define request when installing through some IDEs
135136
l_xml_data_fmt constant xmltype := xmltype(
136137
q'[<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
137138
<xsl:strip-space elements="*" />
138139
<xsl:template match="/child::*">
139140
<xsl:for-each select="child::node()">
140141
<xsl:choose>
141142
<xsl:when test="*[*]"><xsl:copy-of select="node()"/></xsl:when>
142-
<xsl:when test="position()=last()"><xsl:value-of select="normalize-space(.)"/><xsl:text>&#xD;</xsl:text></xsl:when>
143+
<xsl:when test="position()=last()"><xsl:value-of select="normalize-space(.)"/><xsl:text>'||CHR(38)||'#xD;</xsl:text></xsl:when>
143144
<xsl:otherwise><xsl:value-of select="normalize-space(.)"/>,</xsl:otherwise>
144145
</xsl:choose>
145146
</xsl:for-each>

source/install.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ whenever oserror exit failure rollback
2929
prompt Switching current schema to &&ut3_owner
3030
prompt &&line_separator
3131
alter session set current_schema = &&ut3_owner;
32+
alter session set PLSQL_WARNINGS='ENABLE:ALL';
3233
--set define off
3334

3435
--dbms_output buffer cache table
@@ -166,7 +167,6 @@ prompt Installing DBMSPLSQL Tables objects into &&ut3_owner schema
166167
@@install_component.sql 'expectations/data_values/ut_compound_data_diff_tmp.sql'
167168
@@install_component.sql 'expectations/data_values/ut_data_value.tps'
168169
@@install_component.sql 'expectations/data_values/ut_compound_data_value.tps'
169-
@@install_component.sql 'expectations/data_values/ut_compound_data_helper.pks'
170170
@@install_component.sql 'expectations/data_values/ut_data_value_anydata.tps'
171171
@@install_component.sql 'expectations/data_values/ut_data_value_collection.tps'
172172
@@install_component.sql 'expectations/data_values/ut_data_value_object.tps'
@@ -182,6 +182,7 @@ prompt Installing DBMSPLSQL Tables objects into &&ut3_owner schema
182182
@@install_component.sql 'expectations/data_values/ut_data_value_timestamp_ltz.tps'
183183
@@install_component.sql 'expectations/data_values/ut_data_value_varchar2.tps'
184184
@@install_component.sql 'expectations/data_values/ut_data_value_yminterval.tps'
185+
@@install_component.sql 'expectations/data_values/ut_compound_data_helper.pks'
185186
@@install_component.sql 'expectations/matchers/ut_matcher.tps'
186187
@@install_component.sql 'expectations/matchers/ut_comparison_matcher.tps'
187188
@@install_component.sql 'expectations/matchers/ut_be_false.tps'

source/uninstall.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,6 @@ drop type ut_expectation_result force;
258258

259259
drop package ut_event_manager;
260260

261-
drop type ut_event_listener force;
262-
263261
drop type ut_event_item force;
264262

265263
drop type ut_key_value_pairs force;

0 commit comments

Comments
 (0)