/* * * The contents of this file are subject to the Initial * Developer's Public License Version 1.0 (the "License"); * you may not use this file except in compliance with the * License. You may obtain a copy of the License at * http://www.ibphoenix.com/idpl.html. * * Software distributed under the License is distributed on * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either * express or implied. See the License for the specific * language governing rights and limitations under the License. * * * The Original Code was created by Claudio Valderrama C. for IBPhoenix. * The development of the Original Code was sponsored by Craig Leonardi. * * Copyright (c) 2001 IBPhoenix * All Rights Reserved. * * 2002.01.07 Claudio Valderrama: change the impolite way truncate and round work, * make null handling more consistent and add dpower(x,y). * Beware the SQL declaration for those functions has changed. * 2002.01.20 Claudio Valderrama: addMonth should work with negative values, too. * 2003.10.26: Made some values const and other minor changes. * 2004.09.29 Claudio Valderrama: fix numeric overflow in addHour reported by * "jssahdra" . Since all add