Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XJQ1D-0006Tz-T9 for pgsql-docs@arkaria.postgresql.org; Mon, 18 Aug 2014 16:42:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XJQ1D-0001ss-BY for pgsql-docs@arkaria.postgresql.org; Mon, 18 Aug 2014 16:42:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XJMpx-0004Ee-Tw for pgsql-docs@postgresql.org; Mon, 18 Aug 2014 13:19:02 +0000 Received: from dc2snat02.digitalriver.com ([208.79.250.236] helo=mail.digitalriver.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XJMpp-0004DG-71 for pgsql-docs@postgresql.org; Mon, 18 Aug 2014 13:18:59 +0000 Received: from DC2EXCHCAS01.mpls.digitalriver.com (192.168.168.110) by DC2EXHUB02.mpls.digitalriver.com (192.168.168.104) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 18 Aug 2014 08:18:50 -0500 Received: from na01-bl2-obe.outbound.protection.outlook.com (10.0.21.54) by mail.digitalriver.com (192.168.168.110) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 18 Aug 2014 08:18:50 -0500 Received: from BL2PR08MB387.namprd08.prod.outlook.com (10.141.92.148) by BL2PR08MB385.namprd08.prod.outlook.com (10.141.92.139) with Microsoft SMTP Server (TLS) id 15.0.1010.18; Mon, 18 Aug 2014 13:18:36 +0000 Received: from BL2PR08MB387.namprd08.prod.outlook.com ([10.141.92.148]) by BL2PR08MB387.namprd08.prod.outlook.com ([10.141.92.148]) with mapi id 15.00.1005.010; Mon, 18 Aug 2014 13:18:37 +0000 From: Christopher Barham To: "pgsql-docs@postgresql.org" Subject: JDBC documentation - issue report Thread-Topic: JDBC documentation - issue report Thread-Index: Ac+65kn+/16lcm2TRfWAUzFkBc237g== Date: Mon, 18 Aug 2014 13:18:35 +0000 Message-ID: <9c3f9281b1e34a7485bd54144bad6068@BL2PR08MB387.namprd08.prod.outlook.com> Accept-Language: en-AU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [212.23.59.36] x-microsoft-antispam: BCL:0;PCL:0;RULEID:;UriScan:; x-forefront-prvs: 03077579FF x-forefront-antispam-report: SFV:NSPM; SFS:(199003)(189002)(83072002)(86362001)(108616004)(19617315012)(33646002)(101416001)(87936001)(81542001)(2656002)(76482001)(15202345003)(92566001)(77982001)(19625215002)(74502001)(74662001)(19580395003)(19300405004)(85306004)(31966008)(20776003)(76576001)(83322001)(46102001)(95666004)(99286002)(105586002)(79102001)(99396002)(74316001)(2351001)(80022001)(106356001)(66066001)(16236675004)(64706001)(81342001)(110136001)(229853001)(107886001)(107046002)(50986999)(15975445006)(4396001)(54356999)(21056001)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR08MB385; H:BL2PR08MB387.namprd08.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Content-Type: multipart/alternative; boundary="_000_9c3f9281b1e34a7485bd54144bad6068BL2PR08MB387namprd08pro_" MIME-Version: 1.0 X-OriginatorOrg: digitalriver.com X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org --_000_9c3f9281b1e34a7485bd54144bad6068BL2PR08MB387namprd08pro_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Just spotted a possible issue in the Documentation around loading the JDBC = driver. This page documents how: http://jdbc.postgresql.org/documentation/= 93/load.html However, as of JDK6/JDBC 4.0, it should not be necessary to use the Class.forName("org.postgresql.Driver"); method to load the JDBC driver as they are automatically loaded - see Java= doc here http://docs.oracle.com/javase/8/docs/api/java/sql/DriverManager.html Cheers, Chris --_000_9c3f9281b1e34a7485bd54144bad6068BL2PR08MB387namprd08pro_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

Just spotted a possible issue in the Documentation a= round loading the JDBC driver.  This page documents how: http://jd= bc.postgresql.org/documentation/93/load.html

However, as of JDK6/JDBC 4.0, it should not be neces= sary to use the

Class.forName("org.postgresql.Driver");

method to load the JDBC driver as they are automatic= ally loaded  – see Javadoc here

http://docs.oracle.com/javase/8/docs/api/java/= sql/DriverManager.html

 

Cheers,

Chris

 

--_000_9c3f9281b1e34a7485bd54144bad6068BL2PR08MB387namprd08pro_--