db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nirmal Fernando <nirmal070...@gmail.com>
Subject Re: Checking whether the two "expressions" are equal
Date Sat, 24 Apr 2010 15:08:25 GMT
Thanks Bryan, I will look into that.



On Sat, Apr 24, 2010 at 8:14 PM, Bryan Pendleton
<bpendleton.derby@gmail.com> wrote:
> Nirmal Fernando wrote:
>>
>> I am in a trouble of finding where is the value/s used in an expression
>> (eg: j*2 i.e. value is 2) stored. If I expand this (j*2) value node, I can
>> see the operator used as '*' or times, but not the value.
>
> I think you should see that '*' becomes a BinaryArithmeticOperatorNode,
> with two children: the left operand should be a ColumnReference, while
> the right operand should be a NumericConstantNode.
>
> The NumericConstantNode should be the data structure holding the
> constant value '2'.
>
> thanks,
>
> bryan
>



-- 
Best Regards,
Nirmal

C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.

Mime
View raw message