Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hw9eo-0000Gf-Kg for pgsql-general@arkaria.postgresql.org; Fri, 09 Aug 2019 18:30:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hw9en-0003yj-Gm for pgsql-general@arkaria.postgresql.org; Fri, 09 Aug 2019 18:30:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hw9en-0003wj-74 for pgsql-general@lists.postgresql.org; Fri, 09 Aug 2019 18:30:29 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hw9ef-0000w6-D7 for pgsql-general@lists.postgresql.org; Fri, 09 Aug 2019 18:30:28 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 3BBA12FB2; Fri, 9 Aug 2019 20:30:20 +0200 (CEST) Date: Fri, 9 Aug 2019 20:30:20 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: How to check if a field exists in NEW in trigger Message-ID: <20190809183020.GB14917@hjp.at> References: <0cc87310-590f-740e-977d-bcdde57eef1b@lucee.org> <37107788-df16-ca5f-3193-6176fe40f282@gmx.net> <1075832c-e131-474d-5d65-572004410838@lucee.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="R3G7APHDIzY6R/pk" Content-Disposition: inline In-Reply-To: <1075832c-e131-474d-5d65-572004410838@lucee.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --R3G7APHDIzY6R/pk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-08-07 15:54:33 -0700, Igal @ Lucee.org wrote: > There is no reason, however, for an email address to be not-lower-cased, = so > while in some cases (no pun intended) it makes sense to keep the original > CaSe while performing a case insensitive comparison, when it comes to ema= il > addresses I rather collapse the value upon insertion/update. You should be aware that according to the specs, the local part of an email address is case-sensitive. So JoeSmith@example.com and JoESmith@example.com might be two distinct email addresses. Admittedly I've never seen that in practice (although I've seen a lot of other problems caused by people who made unwarranted assumptions about email addresses). hp --=20 _ | Peter J. Holzer | we build much bigger, better disasters now |_|_) | | because we have much more sophisticated | | | hjp@hjp.at | management tools. __/ | http://www.hjp.at/ | -- Ross Anderson --R3G7APHDIzY6R/pk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl1Nu7MACgkQ8g5IURL+ KF0ixxAAoBBtZ2JiJwgzyxUGutv4Sr2FcmM80YOozX2KknF/5+HQ/i6oumMsQ84G s5nmr6O87LU+P81nbQ3yAAN/l5jeEEgXsOEIL8qOK5Ud0JZL0Y6Va29iUeKs4MQ3 0Qp2hSn4OfLLX/zEsyVo1/PJXcwu0AwzVV47YE7bRIWR7yNXr13OKeocTZWvB1Gt kvd2E/KDy+aQCWBI3lq7oSzvUWIUUNuDwgBty6niboP8Bl2X0btoQ4pvpL+ge5DP ENx9hblFR4ph8Y+QCo2n3sGfyM3s4jHyJpuV4/7JfKwdJWSZBCKNg/W+sXxYGdhA QOAV31J8wiB3yrHp5ILhdw1CYH9sXc+0GVCK8Vxiid9fY+adA7Kwpr1+cO7A0R9X X55o+m4eJuyw00Pf9L9/i00KMyrxq57sO78BNjdBpiZmzUGI/l8YrGPVaEcwb7jy ojLySu6YRwiDCTDZpSOL4+WCiXBVN+9bNLFFEBnfB9gcup7Cebny2s41ojk/3PMP 3oT6vZM0WeF6LWyOavw0iL0bKFt/zYAQ4uUbokaETGpUl5HvLxWGtyHayjkjV/eA lCWp/hZJgrcBhB6/Sv7cL07h/43TNMqEdyhiDAe7Mp+eMJuUHIovk8HbZh4SxWWB xeXaHrVxud13kOIWgsxUphxBF97BjxhYi8Dj9IzbmRlBIKWzTZI= =GwCk -----END PGP SIGNATURE----- --R3G7APHDIzY6R/pk--