Home » U++ Library support » U++ SQL » First Firebird for U++ steps
Re: First Firebird for U++ steps [message #17114 is a reply to message #17088] |
Tue, 29 July 2008 16:09   |
|
I have refactored decimal class a bit:
decimal is now Decimal
I think you wanted braces here:
if(sign!=d.sign)
if(sign>d.sign) return 1;
if(sign<d.sign) return -1;
This patch is also included.
I changed
memcpy(number, d.number, D_SIZE * sizeof(int));
to
memcpy(number, d.number, D_SIZE * sizeof(int32));
I also formatted code in upp way (please follow our style in your firebird plugin) and changed throw messages from uppercase to lowercase.
I'm gonna try to use this class in my app and check if it works well. I will also modify postgres plugin to be compatibile with decimal (only a try..)
-
Attachment: Decimal.7z
(Size: 4.08KB, Downloaded 390 times)
|
|
|
Goto Forum:
Current Time: Sat Jul 05 10:54:16 CEST 2025
Total time taken to generate the page: 0.04287 seconds
|