File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,20 @@ describe('161. changePassword.js', function() {
63
63
) ;
64
64
} ,
65
65
function ( cb ) {
66
- var sql = "CREATE USER " + myUser + " IDENTIFIED BY " + myUser ;
66
+ var sql = "BEGIN \n" +
67
+ " DECLARE \n" +
68
+ " e_user_missing EXCEPTION; \n" +
69
+ " PRAGMA EXCEPTION_INIT(e_user_missing, -01918); \n" +
70
+ " BEGIN \n" +
71
+ " EXECUTE IMMEDIATE('DROP USER " + myUser + " CASCADE'); \n" +
72
+ " EXCEPTION \n" +
73
+ " WHEN e_user_missing \n" +
74
+ " THEN NULL; \n" +
75
+ " END; \n" +
76
+ " EXECUTE IMMEDIATE (' \n" +
77
+ " CREATE USER " + myUser + " IDENTIFIED BY " + myUser + "\n" +
78
+ " '); \n" +
79
+ "END; " ;
67
80
dbaConn . execute (
68
81
sql ,
69
82
function ( err ) {
Original file line number Diff line number Diff line change @@ -90,8 +90,7 @@ describe('160. editionTest.js', function() {
90
90
) ;
91
91
} ,
92
92
function ( cb ) {
93
- //var sql = "DROP EDITION nodb_edition_one CASCADE";
94
- let sql = "BEGIN \n" +
93
+ var sql = "BEGIN \n" +
95
94
" DECLARE \n" +
96
95
" e_edition_missing EXCEPTION; \n" +
97
96
" PRAGMA EXCEPTION_INIT(e_edition_missing, -38802); \n" +
@@ -114,7 +113,7 @@ describe('160. editionTest.js', function() {
114
113
) ;
115
114
} ,
116
115
function ( cb ) {
117
- let sql = "BEGIN \n" +
116
+ var sql = "BEGIN \n" +
118
117
" DECLARE \n" +
119
118
" e_edition_missing EXCEPTION; \n" +
120
119
" PRAGMA EXCEPTION_INIT(e_edition_missing, -38802); \n" +
@@ -138,7 +137,7 @@ describe('160. editionTest.js', function() {
138
137
} ,
139
138
// Create user
140
139
function ( cb ) {
141
- let sql = "BEGIN \n" +
140
+ var sql = "BEGIN \n" +
142
141
" DECLARE \n" +
143
142
" e_user_missing EXCEPTION; \n" +
144
143
" PRAGMA EXCEPTION_INIT(e_user_missing, -01918); \n" +
You can’t perform that action at this time.
0 commit comments