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 1gmgdH-0000Cv-GA for pgsql-general@arkaria.postgresql.org; Thu, 24 Jan 2019 15:09:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gmgdG-00032C-3S for pgsql-general@arkaria.postgresql.org; Thu, 24 Jan 2019 15:09:30 +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 1gmgdF-000321-R7 for pgsql-general@lists.postgresql.org; Thu, 24 Jan 2019 15:09:29 +0000 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmgdD-0007oI-VY for pgsql-general@lists.postgresql.org; Thu, 24 Jan 2019 15:09:29 +0000 Received: by mail-ot1-x330.google.com with SMTP id 81so5523962otj.2 for ; Thu, 24 Jan 2019 07:09:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=YItjqAk8aCa1urQOuJ9/xurLtgHzGCOk8ixLuLQpChU=; b=GbFGcOVt/9dAdYhJqw55bQzwQ+orBV9LHiIh9HdS9xzd+4pjCGg6cujLjGgWBLWzGR zIny7fKoOX9bblHfR1zihTFCB5xZy5vuxwNMy1P7rO7JMvE7XZHrA5UuelHlm1i8zyRZ 6nkpuq4R8szdW8qoFIf+SzmWvDuLj9i4QL7ApvX0Vfg7qnKqjZNiR6cOUgFrclt1NWLt 32iYolbElvSBCKzX/3dvmoxI+eeK/AMfEyb93useQ6d+Yk1qFSNUY/0bykZ+ZQVi7oth rADsyoySvok+1q20qYJG2gqKExqNeVQXoV5fALYG2xh3ZnIXpusxfdeywMi4LkGDPSNt zTig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=YItjqAk8aCa1urQOuJ9/xurLtgHzGCOk8ixLuLQpChU=; b=X2630CzcpiiGzimKCHPzIlrDIbh6Vzl0n6RjM7JLmPjxTjefKaC4NZqwDPa3ONNmUw LpAbcNDkbWfPnu6eNk3DkF0+HzZWL21MrKfKbq38EK1huzkRVX5xPAJe/g+bAeVl+0p0 sBjDs4CXHCkt/74rv4oa7mVXVsI6ydbAjaPs1gx9bT9JN2r1Ze4cEHew1a3FJV78LfJ3 OwRXjOMNwXNuzD4ni6Gr6mGtEvLx+Dt5xgrvfPR7yitr9uNfjIGdq09eVVy3+jikJi2L HwW9SCAWd8MVlQ+1iIKuWzK0U8x+z1QzYDalWuOnk9fn3WyWhLCUvLHIBucxyHGq/jZw JjWw== X-Gm-Message-State: AJcUukd0I/YWPX+a4CqDxOeJD4IY0BvPi0X0wNbhsOpdXxCESYd9CLYA 2EdSd0U6hBkRrzfUdYNKorGCln7l X-Google-Smtp-Source: ALg8bN6aXEAeh2yIVDhhRb3QAzkqFCVzbJfqwfae2R/7Hp4G0pf85SFt7EUhhBx3h4abBvgh7Qcn2A== X-Received: by 2002:a9d:4a87:: with SMTP id i7mr4751688otf.178.1548342565947; Thu, 24 Jan 2019 07:09:25 -0800 (PST) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id o128sm17797oif.14.2019.01.24.07.09.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 07:09:25 -0800 (PST) Subject: Re: Casting Integer to Boolean in assignment To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <5c053dcd-e6eb-6d3e-3f30-a83c04b98dd4@gmail.com> Date: Thu, 24 Jan 2019 09:09:24 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/24/19 9:05 AM, Geoff Winkless wrote: > On Thu, 24 Jan 2019 at 14:28, David G. Johnston > wrote: >> To assist developers in avoiding the writing of buggy queries. > Amazing how many of these developers find this a hindrance. If only > they could see how helpful we're being to them. It's the C vs. Ada/Pascal debate, 35 years later... -- Angular momentum makes the world go 'round.