phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Taylor <jamestay...@apache.org>
Subject Re: MOD function?
Date Fri, 28 Mar 2014 16:59:36 GMT
No, but that would be a nice addition if you're up for contributing it. You
could add a "%" to the grammar, add a new ModuloParseNode, and implement a
ModuloExpression, and modify ExpressionCompiler. It'd be very similar (and
a sibling to the  MultiplyParseNode/MultiplyExpression.

Thanks,
James


On Fri, Mar 28, 2014 at 9:40 AM, Stan Campbell <stan.campbell3@gmail.com>wrote:

> Looks like there is no modulo function or operator in the Phoenix syntax?
>
> I guess I'll have to do this programmatically but I was hoping to update
> rows based on an UPSERT/SELECT.
>

Mime
View raw message