Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jY1oB-0001ip-1H for pgsql-jdbc@arkaria.postgresql.org; Mon, 11 May 2020 06:20:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jY1o9-0002pS-UH for pgsql-jdbc@arkaria.postgresql.org; Mon, 11 May 2020 06:20:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jY1o9-0002pL-Lp for pgsql-jdbc@lists.postgresql.org; Mon, 11 May 2020 06:20:57 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jY1o7-0000rI-RL for pgsql-jdbc@postgresql.org; Mon, 11 May 2020 06:20:57 +0000 Received: by mail-pl1-x643.google.com with SMTP id b12so1590704plz.13 for ; Sun, 10 May 2020 23:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=L5WwuBhH5/UoWi2/PnSuvXwMc6dOpEryn5FcAwedttY=; b=mV9SkE9wT+EvNkFr61WO+Jo5twYDPT0RwIPc2rLRiR4hLIIFOicTvyu4wr9cPhJdw7 cRV61ZtL23hAbXPJlbdHQLWfyuaXBdIomrGpZqPqwZabBtzUIs4Xq0GIIv6C9AsZ3/4V 5sItTcR0IU24yfPOnLHHNP0U37wk3A/jhuvW64PVsg/3Pu8GRjzpVyHJ5xGPIL4OJAUR XYuM9I3XelY/i3ECAMGAtbtNBvCfEwQ9cAR65VUUKtzswTDiPFpHoYZCAgC0YA7AHxta r10nyhHZbo8RIAOlPz9ipJP2F+0pt31Vqpk0c5patlOqRvceFqmoZxNWkm72jjRDsu8D +XSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=L5WwuBhH5/UoWi2/PnSuvXwMc6dOpEryn5FcAwedttY=; b=dsH2I0PZIkb4UC3ZUqPF08RTaliOyGkeJnAwfHC1zfQAmZAOqVZyUX8ufgfa72sdFt f15VByl8c9nAi/ictyzZhWiQTX3aA9FXIiNGmXh6i8QXdIsKMnuv9EpAyV2pbISzgt6Z tQwomxh5IqxnIlmGnIqbGaXfYdVmGtp8XbK6Se+7Gdtw36NnQgD4YNcY/ITYZdQIEoiH zj5rFEG1oXjRZFTb4o5nIER3QHNPd7MbgZiiTiJcl4+4gV2jTr6H0M1cIZ+IVBqkUtZj o+PGGnPIDY3+hNzDK00hKrukzrMDIgLwo95ZJI0EWDU8jIhn15jd8M20gZuiYFRnEu9t YWWw== X-Gm-Message-State: AGi0Pube+FUlM4b1TWy/xOrh5Hbpj0RECgg3sxbYbxPJ1PO6BqT5wP3J TIEnSJvDqHas4/q+2P8ChzM= X-Google-Smtp-Source: APiQypJB/fBx7RJa7/rLvYhaplEE4aXm1YSX+ovROf5s3pl0AZkcj8dwXSKGp7tMSLzupkVxhqc6LQ== X-Received: by 2002:a17:90a:7309:: with SMTP id m9mr20219160pjk.235.1589178053608; Sun, 10 May 2020 23:20:53 -0700 (PDT) Received: from 192-168-1-102.tpgi.com.au (59-102-62-55.tpgi.com.au. [59.102.62.55]) by smtp.gmail.com with ESMTPSA id y78sm8250407pfb.127.2020.05.10.23.20.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2020 23:20:52 -0700 (PDT) Message-ID: Subject: Re: getTypeMap() returns null - bug? From: rob stone To: javadesigner , List Date: Mon, 11 May 2020 16:20:48 +1000 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On Mon, 2020-05-11 at 01:03 -0400, javadesigner wrote: > Hi all: > > I'm playing around with customized Type Mappings and have the > following > snipped of code: > > ==== > Connection con = getConnection(); /*get connection from driver - > util > method*/ > System.out.println("GOT CONNECTION:" + con); > java.util.Map map = con.getTypeMap(); > System.out.println("map:"+map); > ==== > > When I run this I get: > > GOT CONNECTION:org.postgresql.jdbc.PgConnection@3f8f9dd6 > map:null > > getTypeMap should return a map but it returns null ! > > I don't see any pending issues/bug on the mailing list archives. > > I'm using the following (up-to-date) setup: > > postgres 11.7 > driver: postgresql-42.2.12.jar > java: 1.8.x > > Best, > -J > >