@@ -96,7 +96,7 @@ describe('273. jsonDualityView2.js', function() {
9696 const result = await connection . execute ( `select * from student order by 1` ) ;
9797
9898 assert . strictEqual ( result . rows . length , 3 ) ;
99- await connection . execute ( `drop table student PURGE` ) ;
99+ await connection . execute ( testsUtil . sqlDropTable ( ` student` ) ) ;
100100 } ) ;
101101
102102 it ( '273.2 Base table name with various sizes (128)' , async function ( ) {
@@ -116,8 +116,8 @@ describe('273. jsonDualityView2.js', function() {
116116 {StudentId: stuid , StudentName: name}` ) ;
117117
118118
119- await connection . execute ( `drop table hTKFRCNOJyYYvuyUvKsEWhfuObJBjBNnzLVuwqR` +
120- `faqQAdtXBKxOHeheawjKeezZbgmfJJRhovKkhtwTXXnTWYpojdeawBFuAxPNaDAPjxuRzdpzYcHYwYggVCQueeXiv PURGE` ) ;
119+ await connection . execute ( testsUtil . sqlDropTable ( ` hTKFRCNOJyYYvuyUvKsEWhfuObJBjBNnzLVuwqR` +
120+ `faqQAdtXBKxOHeheawjKeezZbgmfJJRhovKkhtwTXXnTWYpojdeawBFuAxPNaDAPjxuRzdpzYcHYwYggVCQueeXiv` ) ) ;
121121 } ) ;
122122
123123 it ( '273.3 Perform dbms_metadata.get_ddl() and verify tags were properly added to columns and tables' , async function ( ) {
@@ -168,7 +168,7 @@ describe('273. jsonDualityView2.js', function() {
168168 {stuid, NOINSERT }` ) ;
169169 const result = await connection . execute ( `select * from student order by 1` ) ;
170170 assert . strictEqual ( result . rows . length , 3 ) ;
171- await connection . execute ( `drop table student PURGE` ) ;
171+ await connection . execute ( testsUtil . sqlDropTable ( ` student` ) ) ;
172172 } ) ;
173173
174174 it ( '273.6 Specify DELETE, NODELETE both, BUG number : 34657745' , async function ( ) {
@@ -201,7 +201,7 @@ describe('273. jsonDualityView2.js', function() {
201201 / O R A - 4 0 9 3 4 : / //ORA-40934: Cannot create JSON Relational Duality View 'STUDENT_OV':
202202 //Invalid or c onflicting annotations in the WITH clause.
203203 ) ;
204- await connection . execute ( `drop table student PURGE` ) ;
204+ await connection . execute ( testsUtil . sqlDropTable ( ` student` ) ) ;
205205 } ) ;
206206
207207 it ( '273.7 Repetitive tags' , async function ( ) {
@@ -226,7 +226,7 @@ describe('273. jsonDualityView2.js', function() {
226226 / O R A - 4 0 9 4 7 : / //ORA-40947: A JSON relational duality view is created with duplicate tag 'INSERT'
227227 ) ;
228228
229- await connection . execute ( `drop table student PURGE` ) ;
229+ await connection . execute ( testsUtil . sqlDropTable ( ` student` ) ) ;
230230 } ) ;
231231
232232 describe ( '273.3 Verify view creation on different types of tables' , function ( ) {
@@ -247,20 +247,20 @@ describe('273. jsonDualityView2.js', function() {
247247 } ) ;
248248
249249 after ( async function ( ) {
250- await connection . execute ( 'drop table student PURGE' ) ;
250+ await connection . execute ( testsUtil . sqlDropTable ( ' student' ) ) ;
251251 } ) ;
252252
253253 it ( '273.3.1 View with Heap' , async function ( ) {
254254 await connection . execute ( `CREATE TABLE t1 (c1 NUMBER PRIMARY KEY, c2 VARCHAR2(30)) ORGANIZATION HEAP` ) ;
255255 await connection . execute ( `CREATE OR REPLACE JSON RELATIONAL DUALITY VIEW heap AS t1{c1,c2}` ) ;
256- await connection . execute ( `drop table t1 PURGE` ) ;
256+ await connection . execute ( testsUtil . sqlDropTable ( `t1` ) ) ;
257257 await connection . execute ( `drop view heap` ) ;
258258 } ) ;
259259
260260 it ( '273.3.2 View with IOT' , async function ( ) {
261261 await connection . execute ( `CREATE TABLE my_iot (id INTEGER PRIMARY KEY, value VARCHAR2(50)) ORGANIZATION INDEX` ) ;
262262 await connection . execute ( `CREATE OR REPLACE JSON RELATIONAL DUALITY VIEW iot AS my_iot{id,value}` ) ;
263- await connection . execute ( `drop table my_iot PURGE` ) ;
263+ await connection . execute ( testsUtil . sqlDropTable ( ` my_iot` ) ) ;
264264 await connection . execute ( `drop view iot` ) ;
265265 } ) ;
266266
@@ -281,7 +281,7 @@ describe('273. jsonDualityView2.js', function() {
281281 ` ))\n` +
282282 `)` ) ;
283283 await connection . execute ( `CREATE OR REPLACE JSON RELATIONAL DUALITY VIEW partition AS sales{prod_id,cust_id}` ) ;
284- await connection . execute ( `drop table sales PURGE` ) ;
284+ await connection . execute ( testsUtil . sqlDropTable ( ` sales` ) ) ;
285285 await connection . execute ( `drop view partition` ) ;
286286 } ) ;
287287
@@ -310,7 +310,7 @@ describe('273. jsonDualityView2.js', function() {
310310
311311 await connection . execute ( `CREATE OR REPLACE JSON RELATIONAL DUALITY VIEW GTT\n` +
312312 `AS today_sales{order_id}` ) ;
313- await connection . execute ( `drop table today_sales PURGE` ) ;
313+ await connection . execute ( testsUtil . sqlDropTable ( ` today_sales` ) ) ;
314314 await connection . execute ( `drop view GTT` ) ;
315315 } ) ;
316316 } ) ;
@@ -406,7 +406,7 @@ describe('273. jsonDualityView2.js', function() {
406406 await connection . execute ( `CREATE OR REPLACE JSON RELATIONAL DUALITY VIEW student_ov AS unq_idx_demo{a,b}
407407 ` ) ;
408408
409- await connection . execute ( `drop table unq_idx_demo PURGE` ) ;
409+ await connection . execute ( testsUtil . sqlDropTable ( ` unq_idx_demo` ) ) ;
410410 await connection . execute ( 'drop view student_ov' ) ;
411411 } ) ;
412412
@@ -430,7 +430,7 @@ describe('273. jsonDualityView2.js', function() {
430430 await connection . execute ( `CREATE OR REPLACE JSON RELATIONAL DUALITY VIEW student_ov AS cmp_idx_demo{a,b}
431431 ` ) ;
432432
433- await connection . execute ( `drop table cmp_idx_demo PURGE` ) ;
433+ await connection . execute ( testsUtil . sqlDropTable ( ` cmp_idx_demo` ) ) ;
434434 await connection . execute ( 'drop view student_ov' ) ;
435435 } ) ;
436436
@@ -450,7 +450,7 @@ describe('273. jsonDualityView2.js', function() {
450450 await connection . execute ( `CREATE OR REPLACE JSON RELATIONAL DUALITY VIEW student_ov AS members{id,a__b:first_name}
451451 ` ) ;
452452
453- await connection . execute ( `drop table MEMBERS PURGE` ) ;
453+ await connection . execute ( testsUtil . sqlDropTable ( ` MEMBERS` ) ) ;
454454 await connection . execute ( 'drop view student_ov' ) ;
455455 } ) ;
456456
@@ -471,7 +471,7 @@ describe('273. jsonDualityView2.js', function() {
471471
472472 await connection . execute ( `CREATE OR REPLACE JSON RELATIONAL DUALITY VIEW student_ov AS bitmap_index_demo{id,active}` ) ;
473473
474- await connection . execute ( `drop table bitmap_index_demo PURGE` ) ;
474+ await connection . execute ( testsUtil . sqlDropTable ( ` bitmap_index_demo` ) ) ;
475475 await connection . execute ( 'drop view student_ov' ) ;
476476 } ) ;
477477 } ) ;
@@ -546,7 +546,7 @@ describe('273. jsonDualityView2.js', function() {
546546 / O R A - 6 3 1 0 1 : / //ORA-63101: JSON Duality View Entity Tag (ETAG) column cannot be redacted
547547 ) ;
548548
549- await conn . execute ( `drop table redact PURGE` ) ;
549+ await conn . execute ( testsUtil . sqlDropTable ( ` redact` ) ) ;
550550 await conn . close ( ) ;
551551 } ) ;
552552 } ) ;
0 commit comments