8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-30 22:43:03 +01:00
Commit Graph

130 Commits

Author SHA1 Message Date
robocop
e60f718dfb The original message about FP overflow was not very useful for built-in functions (unlike other msgs, it didn't identify the cause). Made a special message for it. Also, one alice (gfix) help item was put erroneously by IB engineers in system_errors.sql; delete it. 2009-07-17 17:13:28 +00:00
robocop
f10e1b72eb Style. 2009-06-27 06:23:36 +00:00
asfernandes
928d2616fd Misc 2009-06-19 02:29:08 +00:00
robocop
4cd4c52d42 Fix CORE-2505: beware of built-in functions returning NaN and Inf. Some functions were added, but they are called from the debugger only because they aren't exposed through DSQL. 2009-06-17 12:25:32 +00:00
robocop
d962a392d3 Fix CORE-2501: bin_shl and bin_shr shouldn't accept negative shifts. 2009-06-09 13:02:40 +00:00
asfernandes
b8c3b0dda6 Misc 2009-05-27 01:36:00 +00:00
alexpeshkoff
3272ca3731 Make it build with aCC and avoid #ifdefs 2009-05-25 12:27:29 +00:00
alexpeshkoff
a37d818726 AIX port - native compiler support 2009-05-07 14:49:40 +00:00
alexpeshkoff
cef41b3286 1. Solaric/Sparc SunProCC port.
2. Cleanup SOLARIS_MT threading model.
2009-05-05 08:06:37 +00:00
robocop
e5b226f7a7 More unused params; style. 2009-05-02 13:00:09 +00:00
alexpeshkoff
8c983fec26 Fixed alignment issues with on-stack vary strings 2009-04-29 14:00:32 +00:00
asfernandes
1c20adb8fc Misc 2009-04-29 01:52:49 +00:00
robocop
2d7cb94844 Unused params
Some BLR checks
2009-04-28 13:08:04 +00:00
robocop
888000e21e Unused function params. 2009-04-26 10:24:44 +00:00
robocop
bfda334928 Remove macro needed for VC6 only. 2009-04-07 12:48:16 +00:00
asfernandes
3915bcfbbd Fixed CORE-1346 - lpad and rpad with two columns not working 2009-04-05 13:06:59 +00:00
alexpeshkoff
cf6471d4be Put all local stuff in anonymous namespace instead of declaring static.
This helps avoid some conflicts (like presence of cot() in math.h on HPUX).
2009-03-12 15:16:57 +00:00
asfernandes
ddb2a9e0ba Remove not needed lines 2009-02-10 16:29:16 +00:00
asfernandes
79e89d573d Misc 2009-01-03 19:02:04 +00:00
robocop
6406e45337 Shut up compiler warnings (unreferenced vars, uninitialized vars, compile-time conditional code, etc.) 2009-01-02 06:36:12 +00:00
robocop
762d7e1392 Style. 2008-12-25 06:09:37 +00:00
asfernandes
2991779182 Fixed CORE-2174 - DATEADD and DATEDIFF causes an assert in TimeStamp::decode() 2008-11-07 14:31:58 +00:00
robocop
97e9a515cd Fixed inconsistencies noticed by Adriano. 2008-10-16 10:15:02 +00:00
asfernandes
d3e72ed046 Misc 2008-10-08 02:24:51 +00:00
asfernandes
39737cf97c Misc 2008-10-06 01:19:36 +00:00
robocop
586c3a6cde CORE-1799: improve the almost useless "expression evaluation not supported" error message.
Did the JRD side except par.cpp because this part is covered by DSQL (only ESQL programs won't get the improved messages).
2008-10-03 05:41:16 +00:00
alexpeshkoff
7c8427bc35 Separated CVT functions to common and jrd parts.
This made possible to avoid ugly CVT_move export.

Cleanup of errors handling in CVT functions.
2008-07-10 15:57:33 +00:00
asfernandes
142f9897f8 Fixed CORE-1936 - The log(base, number) built-in function doesn't check parameters and delivers NAN values instead 2008-07-09 15:30:14 +00:00
alexpeshkoff
5ac5869661 CORE-1964 - stop vararg mess when reporting errors. Use special class for it. More (ERR_post cleanup) to come. 2008-07-03 12:02:54 +00:00
alexpeshkoff
a2e416210b Fixed CORE-1964: Use of 0 instead of isc_arg_end to terminate list of ERR_post's (and cousines) arguments is invalid.
Also cleaned up use of gds__log() in a few places.
2008-06-26 09:47:59 +00:00
asfernandes
b8a3abb888 Misc 2008-06-17 01:02:01 +00:00
robocop
97b9553ecd Constness and some unsigned values. 2008-06-14 10:47:02 +00:00
robocop
1cdd4e4126 Clean the sources from VC6 hacks. 2008-05-14 05:17:53 +00:00
robocop
6caa0172b7 Misc. 2008-05-08 08:51:53 +00:00
robocop
61662f5b5b Constness and style. 2008-04-19 09:42:01 +00:00
asfernandes
5a059b20c0 Misc 2008-04-16 02:09:14 +00:00
robocop
3d750c2bf1 Enable WEEK for dateAdd and dateDiff. 2008-04-14 13:21:05 +00:00
robocop
d54a9f7ef6 - Let BIN_AND, BIN_OR and BIN_XOR take two params as minimum.
- Implement BIN_NOT.
2008-04-14 11:09:16 +00:00
asfernandes
7394d60551 Fixed CORE-1828 - Error with ABS in dialect 1 2008-04-12 22:55:39 +00:00
robocop
62a2cddd9d I consider useful to be able to add weeks or get differences in weeks without going back and forth with *7 or /7, but if others want to follow the standard literally and leave week only as week number in a year... 2008-04-12 13:40:48 +00:00
robocop
7a5c224438 - Enable week for dateAdd and dates or timestamps, since it's simply adding 7 days.
- Enable hour, minute, second and millisecond for dateAdd and dates.
The quantity added or substracted should account at least for one day to produce effect (IE adding 23 hours to a date doesn't increment it).
- Enable week for dateDiff and dates or timestamps.
- Enable hour, minute, second and millisecond for dateDiff and dates.

To be checked by Adriano.
2008-04-12 12:27:05 +00:00
dimitr
d0a6ff7fe7 More changes targeted to a better error diagnostics. 2008-04-04 10:13:44 +00:00
alexpeshkoff
541ff6ff3f fixed declaration 2008-03-27 09:16:20 +00:00
dimitr
b87b5032ef Changes in the TimeStamp class by Dmitry Kovalenko. 2008-03-26 10:21:04 +00:00
dimitr
48e81dd58a The merge is being fixed. 2008-01-16 12:22:11 +00:00
dimitr
1fa56f4cd7 The merge is being fixed. 2008-01-16 12:10:43 +00:00
dimitr
7f81eaae30 The merge continued. 2008-01-16 11:18:58 +00:00
asfernandes
1c40b7d633 Fixed CORE-1677 - Floor & ceiling functions give wrong results with exact numeric arguments 2008-01-08 00:52:49 +00:00
asfernandes
460b06312d Use static and larger buffer for HASH(blob) - suggested by Claudio 2007-12-07 14:29:36 +00:00
alexpeshkoff
eea9070f48 Optimized RuntimeStaticstics (and related part of ThreadDb) for performance - some tests run 25faster 2007-12-03 15:46:39 +00:00
asfernandes
d609db2acd Misc 2007-11-30 10:44:30 +00:00
asfernandes
57b8825a46 Improvement CORE-1623 - Improve memory consumption of HASH(blob) 2007-11-29 14:32:14 +00:00
asfernandes
7e86351e9a Fixed wrong assertion - thanks to Dmitry Kovalenko 2007-11-15 13:10:49 +00:00
asfernandes
4e47cd4846 Feature CORE-1511 - POSITION(string_exp1, string_exp2 [, start]) 2007-11-12 00:31:11 +00:00
asfernandes
ca7004e241 1) Fixing another case of CORE-1514 - Many new 2.1 built in functions have incorrect NULL semantics
2) Improvement CORE-1569 - ROUND function second parameter - make optional like TRUNC
2007-11-12 00:02:18 +00:00
asfernandes
7afdc78371 Fixed CORE-1582 - ABS() rounds NUMERIC values 2007-11-10 00:53:29 +00:00
asfernandes
76f3f85b80 Misc 2007-10-29 00:19:27 +00:00
asfernandes
9dd863d6d7 Create class to buffer random bytes generation as process of generate many small random bytes is slow - thanks to Nickolay 2007-10-28 14:54:16 +00:00
robocop
146d8c5e1f Use code that works across different compilers.
Modify common.h to fix some particular compiler's suffix for INT64 constants.
2007-10-28 08:18:45 +00:00
asfernandes
ae60859d92 CORE-1546 - Improve random number quality of builtin RAND 2007-10-27 17:16:45 +00:00
asfernandes
c7440554de Fixed CORE-1528 - Functions DATEDIFF, ABS(integer const) does not work in dialect 1 2007-10-25 14:31:17 +00:00
asfernandes
78e4d71ee1 Remove weekday support in DATEADD/DATEDIFF - CORE-1526 2007-10-23 14:14:23 +00:00
asfernandes
d45c16929d Fixed CORE-1514 - Many new 2.1 built in functions have incorrect NULL semantics 2007-10-17 15:15:02 +00:00
asfernandes
e443c2b9ed Fixed CORE-1522 - Inconsistent DATEDIFF behaviour 2007-10-17 14:17:02 +00:00
asfernandes
944108171e Use const in SysFunction as suggested by Dmitry Kovalenko 2007-10-12 20:25:04 +00:00
asfernandes
fa4d185a33 Fixed CORE-1489 - DATEADD wrong work with NULL arguments 2007-10-01 15:49:42 +00:00
asfernandes
6e945e5be7 Avoid integer overflow in date arithmetic - thanks to Claudio 2007-07-31 15:22:19 +00:00
asfernandes
b5a23c12d1 Improvements:
1) CORE-1387 - Add MILLISECONDS handling to EXTRACT, DATEADD and DATEDIFF functions
2) CORE-663 - EXTRACT(WEEK FROM DATE)
2007-07-31 01:22:59 +00:00
asfernandes
e25dcbc17c Improvement CORE-1340 - Add a scale parameter to TRUNC function 2007-07-03 00:09:39 +00:00
asfernandes
46fbcea63e More work on CORE-1315 2007-06-09 20:49:16 +00:00
asfernandes
1ac058489a 1) More work on CORE-1315
2) Fixed crash in LPAD/RPAD caused by SLONG->ULONG replacement
2007-06-09 19:55:34 +00:00
asfernandes
f4be0d2421 Fixed CORE-1315 - Data type unknown, for most functions ported from Yaffil 2007-06-09 19:18:21 +00:00
asfernandes
f676883248 Misc 2007-04-21 03:27:36 +00:00
alexpeshkoff
8b5dd60a66 fixed posix build after latest changes 2007-04-19 09:19:11 +00:00
asfernandes
79731908d7 Change GEN_UUID to return CHAR(16) CHARACTER SET OCTETS 2007-04-17 15:27:32 +00:00
asfernandes
a798e403ee Misc 2007-04-17 02:24:33 +00:00
asfernandes
76e281e792 Fix ABS - thanks to Claudio 2007-04-16 15:42:36 +00:00
asfernandes
f7b7f2b96f Some changes as per Claudio comments 2007-04-16 15:31:28 +00:00
robocop
628a66c360 Casting a spell over the code to allow VC6 compilation. 2007-04-15 11:27:15 +00:00
asfernandes
8c7076b67f Port of Yaffil builtin functions 2007-04-12 15:56:34 +00:00