The following java code returns the string "Driver Name = MariaDB connector/J" instead of the correct "Driver Name = MariaDB Connector/J"
import java.sql.Connection;
|
import java.sql.DatabaseMetaData;
|
import java.sql.DriverManager;
|
|
public class p2 {
|
public static void main(String[] args) throws Exception {
|
Connection conn = DriverManager.getConnection("jdbc:mariadb://moe:10309/test", "user", "pwd");
|
DatabaseMetaData metadata = conn.getMetaData();
|
System.out.println("Driver Name = " + metadata.getDriverName());
|
}
|
}
|