Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZjxn-0001KA-Di for pgsql-jdbc@arkaria.postgresql.org; Mon, 14 Apr 2014 16:42:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WZjxm-0006SX-QU for pgsql-jdbc@arkaria.postgresql.org; Mon, 14 Apr 2014 16:42:30 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZjxl-0006RG-LH for pgsql-jdbc@postgresql.org; Mon, 14 Apr 2014 16:42:29 +0000 Received: from mail-ee0-x230.google.com ([2a00:1450:4013:c00::230]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WZjxi-0003GS-Sg for pgsql-jdbc@postgresql.org; Mon, 14 Apr 2014 16:42:29 +0000 Received: by mail-ee0-f48.google.com with SMTP id b57so6763683eek.21 for ; Mon, 14 Apr 2014 09:42:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=WekD4hBoONvxRJmmw4DXl34kEkGz4hVMRYOeHuJqnDE=; b=GRJoSeTq4fJeJtT+IPFWxwFgKWVEQBaEJquB7SS74HvZLRQGyzQRYCu026HPld2lh6 zk5+PymA2S2LPJTwQ40z7dMGiKwhjiFA0nBX0FiPuRtXl/HB7pC630cSger2CecpBBrd Es0P0HRLA+BS9HKden3sAEMPQCtoyE7+XkDghetmXCal/In79Mt9+vh8w+APt8KXEmnO rAhOURhmZawUh42crHqf/bptu8D6WnwyKRyjYp8DlpeuU9jklVhyrd8xK3fY5g9biJ1a rMqa0i1i17SfCx6uMH989JxBi/vb2pDu83sCeIURuG5HKkblD27eEBq2fBru9PWuKp70 U/NA== X-Received: by 10.15.100.196 with SMTP id bn44mr3165008eeb.104.1397493745564; Mon, 14 Apr 2014 09:42:25 -0700 (PDT) Received: from [192.168.43.204] ([89.204.153.173]) by mx.google.com with ESMTPSA id n41sm42300003eeg.4.2014.04.14.09.42.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 09:42:24 -0700 (PDT) Message-ID: <534C0FEF.6000504@googlemail.com> Date: Mon, 14 Apr 2014 18:42:23 +0200 From: =?ISO-8859-15?Q?J=FCrgen_Rose?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: List Subject: properties and url Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -0.6 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Hi, when I look at that code: public void setUrl(String url) throws SQLException { Properties p = org.postgresql.Driver.parseURL(url, null); serverName = p.getProperty("PGHOST", "localhost"); portNumber = Integer.parseInt(p.getProperty("PGPORT", "0")); databaseName = p.getProperty("PGDBNAME"); loginTimeout = Integer.parseInt(p.getProperty("loginTimeout", "0")); socketTimeout = Integer.parseInt(p.getProperty("socketTimeout", "0")); prepareThreshold = Integer.parseInt(p.getProperty("prepareThreshold", "5")); unknownLength = Integer.parseInt(p.getProperty("unknownLength", "0")); logLevel = Integer.parseInt(p.getProperty("loglevel", "0")); protocolVersion = Integer.parseInt(p.getProperty("protocolVersion", "0")); ssl = Boolean.parseBoolean(p.getProperty("ssl")); sslfactory = p.getProperty("sslfactory"); receiveBufferSize = Integer.parseInt(p.getProperty("receiveBufferSize", "-1")); sendBufferSize = Integer.parseInt(p.getProperty("sendBufferSize", "-1")); tcpKeepAlive = Boolean.parseBoolean(p.getProperty("tcpKeepAlive")); compatible = p.getProperty("compatible"); applicationName = p.getProperty("ApplicationName"); stringType = p.getProperty("stringtype"); binaryTransfer = Boolean.parseBoolean(p.getProperty("binaryTransfer")); disableColumnSanitiser = Boolean.parseBoolean(p.getProperty("disableColumnSanitiser")); } I see that all properties, except loglevel and stringtype conform to the usual property conventions. Any reason behind this, or is it just historically grown that way? Its just, when I had a look at some other DataSourceFactoriy implementations, I saw at least one approach where the properties get set through reflection. Which would fail in these two cases. Jürgen -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc