pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: marc@daelemans.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14681: Erroneous modulo (%) result
Date: Wed, 31 May 2017 18:37:01 -0400
Message-ID: <20170531223701.gonib5g2uoyb56gs@alvherre.pgsql> (raw)
In-Reply-To: <20170531214547.1500.25117@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

marc@daelemans.com wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      14681
> Logged by:          Marc Daelemans
> Email address:      marc@daelemans.com
> PostgreSQL version: 9.6.3
> Operating system:   Win8.1 x64
> Description:        
> 
> select i, i&11 as j from generate_series ( 1, 100 ) i ;

Note that you're using the & operator (bitwise and) rather than % here.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (6+ messages)  latest in thread

Message-ID: <20170531223701.gonib5g2uoyb56gs@alvherre.pgsql>
Permalink:  ../20170531223701.gonib5g2uoyb56gs@alvherre.pgsql/
Also on:    postgresql.org/message-id/20170531223701.gonib5g2uoyb56gs@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@2ndquadrant.com, marc@daelemans.com
  Subject: Re: BUG #14681: Erroneous modulo (%) result
  In-Reply-To: <20170531223701.gonib5g2uoyb56gs@alvherre.pgsql>
  References: <20170531214547.1500.25117@wrigleys.postgresql.org> <20170531223701.gonib5g2uoyb56gs@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox