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

76 Commits

Author SHA1 Message Date
alexpeshkoff
6e42c542ea Builtin functions - same changes in legacy file 2007-06-01 13:16:43 +00:00
alexpeshkoff
08c251854b All this functions became builtin in fb2.1 2007-06-01 12:08:01 +00:00
alexpeshkoff
d63491e3c5 Finished gcc-warnings cleanup 2007-04-11 16:05:40 +00:00
robocop
7274dc89c1 Totally misc. 2007-02-20 08:40:38 +00:00
asfernandes
48d51e53c2 Misc 2006-10-02 02:39:45 +00:00
robocop
74dd3542ba Fix comment. 2006-09-28 06:27:27 +00:00
alexpeshkoff
bf3b16eb9d commited patch of Gerard Patel 2006-08-21 08:23:02 +00:00
dimitr
38e557a3d0 Fixed MSVC8 build once more :-) 2006-07-25 08:58:39 +00:00
robocop
74461a8a64 CORE-858
Misc, related to the other data type changes.
2006-07-21 06:57:44 +00:00
robocop
92ea43a721 CORE-858
In version 1.15, I fixed a bug but introduced a worse one. It went unnoticed for more than two years, but fbudf has memory problem when dealing with varchars due to a silly change in the vary struct definition.
I think these h and cpp can be copied safely from the HEAD to FB2.0.
2006-07-21 06:55:37 +00:00
robocop
4e754ec8e4 Migrate fbudf to platform-neutral integral types. 2006-06-03 05:24:33 +00:00
robocop
c4870f6d2b Migrate ib_udf to platform-neutral integral types. 2006-06-03 04:53:06 +00:00
asfernandes
da8bc2343c Misc 2006-06-01 01:46:21 +00:00
dimitr
16aa4ad332 VS8.0 has two implementations of div(). Let's explicitly use the int-aware one. 2006-05-31 15:08:31 +00:00
robocop
38b063b3de I misread the logic: it's true (not false) that tells Timestamp to not call the operating system to get the current time. Thanks to D. Sibiryakov. 2006-02-04 02:40:20 +00:00
robocop
7a3f8e5cb2 fbudf wasn't really thread safe (despite the Mutex) when dealing with the non-reentrant functions localtime and gmtime because we need to copy the contents of the result pointer to a local variable before releasing the Mutex. 2006-02-02 00:39:02 +00:00
robocop
0c28df8cf2 Declare independence day from client library for fbudf . For builds other than MSVC6, the following has to be done:
- add to fbudf project the files timestamp.cpp and timestamp.h
- for the same project, define FBUDF_EXPORTS as preprocessor macro
- for the firebird2 workspace/solution/make/etc get rid of the dependency of fbudf on fbclient. Build files that I indentified that need fixes are:
builds\posix\Makefile.in.client.fbudf
builds\posix\Makefile.in.embed.fbudf
builds\win32\msvc7\fbudf.vcproj
builds\win32\msvc7\Firebird2.sln
MacOs build files ignore fbudf completely.
This change eliminates the problem with the client library having different names depending on the build type (SS, CS, embedded).
2006-02-02 00:28:03 +00:00
alexpeshkoff
64d2be0337 make fbudf use fb2 class Mutex, when needed 2005-12-24 17:05:30 +00:00
robocop
dc007572fb Add getExactTimestampUTC and put some indications. Alex will fix my stub code.
It seems gmtime doesn't work as expected at least with VC6.
2005-12-23 23:08:09 +00:00
robocop
10e313d5bb Declare UDF lower as "LOWER" in ib_udf2.sql and go on with life. 2005-10-04 05:15:09 +00:00
aafemt
cb4abdfd3c Plain C don't know namespaces 2005-06-10 10:35:07 +00:00
robocop
3aaa840483 Misc. 2005-05-22 03:11:41 +00:00
robocop
bb31662854 Solve bug with AddMonth when facing January.
Include little IsLeapYear function.
2005-03-26 05:01:01 +00:00
robocop
39fbdce193 Totally misc. 2005-01-01 01:54:30 +00:00
robocop
4117b22257 Misc. 2004-12-07 01:40:48 +00:00
robocop
6521e12aaf Slavomir Skopalik contributed IB_UDF_frac. 2004-12-07 00:29:40 +00:00
fsg
84f6c9c02b Renamed old rand udf to srand
added new rand function without seed
FSG
2004-11-03 14:16:57 +00:00
skidder
1f57ee9f83 Fix POSIX build. It is difficult to teach make to pick up .cpp file when .c file with the same name is present. Thus we delete ib_udf.c. 2004-11-02 07:13:53 +00:00
skidder
06b32c56d9 Fix MSVC7 build 2004-11-02 06:23:59 +00:00
robocop
b67464ddff Alternative addDay2 function (same usage, more orthodox handling).
Same can be done for other Add<part> functions.
2004-10-28 04:47:32 +00:00
robocop
b3dda49b1a Alternative addDay2 function (same usage, more orthodox handling).
Same can be done for other Add<part> functions.
2004-10-28 04:36:24 +00:00
robocop
a80a37cd1b Make fbudf more civilized:
- Functions that use an output argument shouldn't return anything.
- Signal null output blob if the engine understands it.
- Make input parameter const except in some cases where the library plays with input params using internal engine knowledge (not recommended for general usage).
2004-10-04 08:47:41 +00:00
robocop
aa894d7399 Put comment on deprecated functions. 2004-09-29 06:42:29 +00:00
robocop
5e6a04b6d7 Fix problem reported by "jssahdra" in fb-support. Numeric overflow caused resulting timestamp to go backwards instead of forward. 2004-09-29 06:41:46 +00:00
robocop
2563ddf9f6 Comment added 2004-09-23 04:53:03 +00:00
robocop
434bbadd44 Learning to spell my own surname.
:-)
2004-09-23 04:51:52 +00:00
robocop
8939aea4f0 Change in UDF handling to benefit ib_udf:
- The old ib_udf.sql works as always with ib_udf.c
- You can use ib_udf.cpp with the old ib_udf.sql, but it won't detect NULL
- You must use ib_udf2.sql ONLY with ib_udf.cpp and will have complete functionality
- You can point your build schema to use ib_udf.cpp instead of ib_udf.c
- The changes are backward compatible, except for the detection of NULL that needs the new DDL declarations.
2004-09-20 08:49:58 +00:00
skidder
306cacdece Extent default length for UDF arguments slightly 2004-08-30 15:58:17 +00:00
brodsom
1aa7b9452c Looking for extra ; at namespace declaration end 2004-06-13 23:45:02 +00:00
robocop
b12c1b705b Use the vary struct as the engine does to know the length of a varchar
Style
2004-05-31 02:37:32 +00:00
robocop
441817bd82 1.- Misc changes
2.- Style
3.- Recover dsc_ttype in dsc after Blas' cleanup as a synonym for dsc_sub_type in text types
2004-05-21 06:16:17 +00:00
brodsom
b30a0b8799 Macro cleaning 2004-05-12 00:02:37 +00:00
brodsom
8b5d33b5ea Fix warning 2004-05-05 21:49:50 +00:00
skidder
f157a68aee Make ib_util.h a valid C++ header 2004-05-05 04:47:43 +00:00
robocop
2b295a9108 General cleanup. Sorry if I missed some occurrence. 2004-01-28 07:50:41 +00:00
brodsom
89e8f89f86 Extern "C" cleaning 2003-11-06 03:03:36 +00:00
eku
da0d0f068f Cleanup usage of gettimeofday. 2003-10-31 11:33:45 +00:00
robocop
9ead7a37b4 const correctness
placed some variables in context
fixed some function signatures
closed a few possible buffer overruns
sorry to the platform maintainers, I can't verify what I did for non-Win32 builds
2003-10-29 10:53:47 +00:00
robocop
cfb982a0fe Fix script for SF bug #819224 => Change the comment, too. 2003-10-09 03:54:26 +00:00
robocop
8a25af8cac Fix script for SF bug #819224 2003-10-09 03:38:28 +00:00