@@ -181,31 +181,31 @@ public void testPooledConnectionStatementError() throws Exception {
181
181
Assumptions .assumeTrue (
182
182
!"maxscale" .equals (System .getenv ("srv" )) && !"skysql-ha" .equals (System .getenv ("srv" )));
183
183
Statement stmt = sharedConn .createStatement ();
184
- stmt .execute ("DROP USER IF EXISTS 'testPooledConnectionStatementError '@'%'" );
184
+ stmt .execute ("DROP USER IF EXISTS 'StatementErrorUser '@'%'" );
185
185
186
186
if (minVersion (8 , 0 , 0 )) {
187
187
if (isMariaDBServer () || minVersion (8 , 4 , 0 )) {
188
188
stmt .execute (
189
- "CREATE USER 'testPooledConnectionStatementError '@'%' IDENTIFIED BY"
189
+ "CREATE USER 'StatementErrorUser '@'%' IDENTIFIED BY"
190
190
+ " 'MySup8%rPassw@ord'" );
191
191
} else {
192
192
stmt .execute (
193
- "CREATE USER 'testPooledConnectionStatementError '@'%' IDENTIFIED WITH"
193
+ "CREATE USER 'StatementErrorUser '@'%' IDENTIFIED WITH"
194
194
+ " mysql_native_password BY 'MySup8%rPassw@ord'" );
195
195
}
196
- stmt .execute ("GRANT ALL ON *.* TO 'testPooledConnectionStatementError '@'%'" );
196
+ stmt .execute ("GRANT ALL ON *.* TO 'StatementErrorUser '@'%'" );
197
197
} else {
198
- stmt .execute ("CREATE USER 'testPooledConnectionStatementError '@'%'" );
198
+ stmt .execute ("CREATE USER 'StatementErrorUser '@'%'" );
199
199
stmt .execute (
200
- "GRANT ALL ON *.* TO 'testPooledConnectionStatementError '@'%' IDENTIFIED BY"
200
+ "GRANT ALL ON *.* TO 'StatementErrorUser '@'%' IDENTIFIED BY"
201
201
+ " 'MySup8%rPassw@ord'" );
202
202
}
203
203
stmt .execute ("FLUSH PRIVILEGES" );
204
204
205
205
try {
206
206
ConnectionPoolDataSource ds = new MariaDbDataSource (mDefUrl );
207
207
PooledConnection pc =
208
- ds .getPooledConnection ("testPooledConnectionStatementError " , "MySup8%rPassw@ord" );
208
+ ds .getPooledConnection ("StatementErrorUser " , "MySup8%rPassw@ord" );
209
209
MyEventListener listener = new MyEventListener ();
210
210
pc .addStatementEventListener (listener );
211
211
Connection connection = pc .getConnection ();
@@ -218,7 +218,7 @@ public void testPooledConnectionStatementError() throws Exception {
218
218
assertTrue (listener .statementClosed );
219
219
pc .close ();
220
220
} finally {
221
- stmt .execute ("DROP USER IF EXISTS 'dsUser '@'%'" );
221
+ stmt .execute ("DROP USER IF EXISTS 'StatementErrorUser '@'%'" );
222
222
}
223
223
}
224
224
0 commit comments