import java.sql.*; public class MemorySizeParsingBug { public static void main(String args[]) throws Exception { Class.forName("com.mysql.jdbc.Driver"); Connection c1 = DriverManager.getConnection("jdbc:mysql://localhost/test?user=root&password=&locatorFetchBufferSize=2g"); System.out.println("locatorFetchBufferSize is " + ((com.mysql.jdbc.ConnectionPropertiesImpl)c1).getLocatorFetchBufferSize()); Connection c2 = DriverManager.getConnection("jdbc:mysql://localhost/test?user=root&password=&locatorFetchBufferSize=1G"); System.out.println("locatorFetchBufferSize is " + ((com.mysql.jdbc.ConnectionPropertiesImpl)c2).getLocatorFetchBufferSize()); } }