# HG changeset patch
# User Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com>
# Date 1636124746 -3600
# Node ID ac5e97fc812d783654649a056152cd13a830639f
# Parent  05a705ec9a692dcc46ac69b313614ea3389f5734
Make SQLcopyinto test work onder monetdbd

It opens a new MAPI connection but didn't set the database name.
This works with standalone mserver5, but not with monetdbd.

diff --git a/tests/JDBC_API_Tester.java b/tests/JDBC_API_Tester.java
--- a/tests/JDBC_API_Tester.java
+++ b/tests/JDBC_API_Tester.java
@@ -5014,8 +5014,11 @@ final public class JDBC_API_Tester {
 			int port = Integer.parseInt(con.getClientInfo("port"));
 			String login = con.getClientInfo("user");
 			String passw = con.getClientInfo("password");
+
+			String database = con.getClientInfo("database");
+			server.setDatabase(database);
+
 			// sb.append("host: " + host + " port: " + port + " login: " + login + " passwd: " + passw + "\n");
-
 			sb.append("Before connecting to MonetDB server via MapiSocket\n");
 			List<String> warning = server.connect(host, port, login, passw);
 			if (warning != null) {