64 bit shifting

Ivan Smahin ivan_smahin at paradigmasoft.com
Sat Feb 19 10:37:38 CST 2011


On 2/18/2011 6:34 PM, Chris Jones wrote:
> To clarify what I am trying to do.  I have a table with 3 main columns
> ULong fldHighID;
> ULong fldLowID;
> ULongLong fldCompleteID;
>
> fldCompleteID is defined as a calculated field with the expression 
> "(highID<<32) + lowID", it is set to be indexed and unique.  However, 
> when I do the select "Select fldCompleteID FROM tblSample", I get a 
> result that is equal to "Select fldLowID FROM tblSample".  The 
> fldHighID shift in the expression for fldCompleteID seems to be done 
> as if it were 32 bit.  Is there a way to force a 64 bit calculation?
>
> --Christopher Jones
>
>
> On Thu, Feb 17, 2011 at 6:26 PM, Chris Jones <cjones at daz3d.com 
> <mailto:cjones at daz3d.com>> wrote:
>
>     Hi all,
>
>     Is there a way to make a valentina method field do its bit
>     shifting in 64 bit, I would like to do the following in a method
>     field:
>
>     "(fieldLongField1<<32) + fldLongField2"
>
>     When I attempt this the first field becomes zero which indicates
>     to me that it is being done with 32 bit integers.  Is there a way
>     to change this?
>

Fixed.
http://www.valentina-db.com/bt/view.php?id=5439

-- 
Best regards,
Ivan Smahin
Senior Software Engineer
Paradigma Software, Inc
Valentina - The Ultra-Fast Database
http://www.valentina-db.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macserve.net/pipermail/valentina/attachments/20110219/e9b13d15/attachment-0001.htm>


More information about the Valentina mailing list