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

306 Commits

Author SHA1 Message Date
robocop
e44a99f339 Style and minor cleanup. 2008-05-10 03:44:57 +00:00
asfernandes
6e59d736df 1) Fix Linux build
2) Misc
2008-04-11 01:38:50 +00:00
hvlad
fe3f8c184b New EXECUTE STATEMENT with support of external data source implementation 2008-04-09 20:18:47 +00:00
dimitr
7c47e5f81e Synchronization. 2008-04-04 19:42:21 +00:00
dimitr
b96d7e9a2d Treat 22000 as a generic sqlstate. 2008-04-03 08:13:45 +00:00
dimitr
b87b5032ef Changes in the TimeStamp class by Dmitry Kovalenko. 2008-03-26 10:21:04 +00:00
dimitr
f5659c0b70 1) Major cleanup of the old-style blk and allocator-based blk_type.
2) Added synchronization for the JRD locks.
2008-03-19 16:19:56 +00:00
dimitr
c8135d7dc2 Fixed the bug in the binary search algorithm. 2008-03-17 17:59:37 +00:00
dimitr
afb970dba1 1) Cleanup.
2) Catch exceptions in AST routines.
2008-03-12 16:53:57 +00:00
dimitr
153a5b997f Don't print SQLSTATE by fb_interpret(). 2008-03-12 08:44:41 +00:00
asfernandes
74d8711856 Misc 2008-03-08 21:20:26 +00:00
robocop
609025b0a2 Return zero when isc_portable_integer or gds__vax_integer receive invalid parameters. 2008-03-07 09:28:01 +00:00
dimitr
bc9f7470cb Cleanup/refactoring. 2008-03-04 13:15:28 +00:00
alexpeshkoff
58f8675e57 1. Make use of gds__log_status() more consustent (no Database: line in log when database is not specified).
2. A bit better logic when error happens during provider shutdown.
2008-03-03 13:59:09 +00:00
robocop
c93824d967 Paranoid checks. 2008-02-29 07:10:07 +00:00
asfernandes
312a391d78 Misc 2008-02-26 02:23:28 +00:00
dimitr
23157f5b85 Misc. 2008-02-24 15:27:41 +00:00
dimitr
c1f75dcdf8 Ported SQLSTATE from Vulcan.
Part II: handling of isc_arg_sql_state.
2008-02-24 15:02:04 +00:00
dimitr
ec513fd5cb Ported SQLSTATE from Vulcan.
Part I: core changes.
2008-02-24 14:07:01 +00:00
asfernandes
6dd361603f Misc 2008-02-04 17:01:36 +00:00
alexpeshkoff
148200b353 protected cleanup liknked list with mutex 2008-02-04 14:53:39 +00:00
dimitr
a38b327886 Cleanup. Get rid of the JrdMemoryPool. 2008-01-29 10:11:52 +00:00
alexpeshkoff
39896cb955 Fixed CORE-1671: atexit() calls in client libraries cause segfaults
and CORE-1079: Every attach of fbclient/fbembed library leaks 64KB of memory

To do it:
- created new template GlobalPtr, controlling access to destructors of global objects.
- applied it to global objects.

Also some related cleanup.
2008-01-23 15:52:40 +00:00
alexpeshkoff
f51bf716f9 rolled back my bad attempt to fix CORE 1671 2008-01-17 16:07:56 +00:00
dimitr
e08c5da397 The merge continued. 2008-01-16 09:07:24 +00:00
alexpeshkoff
a29b6d536b Fixed CORE-1671: atexit() calls in client libraries cause segfaults if the libraries are used in dlopen()ed modules 2008-01-06 14:07:11 +00:00
hvlad
2b47bbe55b Revert files back after wrong commit 2007-11-19 00:21:18 +00:00
hvlad
86f1141328 Execute statement with support of external data source 2007-11-18 22:59:20 +00:00
robocop
399af026df Misc. 2007-10-25 03:59:23 +00:00
asfernandes
9a1eb5891b Misc 2007-05-23 15:29:53 +00:00
asfernandes
c67afcb4ee Improvement CORE-1277 - Automatic transliteration of text blobs 2007-05-22 02:14:20 +00:00
asfernandes
6a0e5e1ae0 Fixed BLR filter for exceptions with strings (EXCEPTION e 'string') 2007-05-11 15:14:31 +00:00
hvlad
a9bf017e5c Fixed bug CORE-1223 : Wrong message in firebird.log on Open SuSe Linux 10.2 : Open file limit increased from 1024 to 0. Thanks to Ioannidis Dimitrios for help 2007-04-23 11:01:25 +00:00
alexpeshkoff
d63491e3c5 Finished gcc-warnings cleanup 2007-04-11 16:05:40 +00:00
alexpeshkoff
6e735f7c53 Misc + gcc warning hunting 2007-04-09 16:15:29 +00:00
asfernandes
6360286eb8 Misc 2007-04-06 16:19:33 +00:00
alexpeshkoff
edfa819bf7 restored functionality of -e family of switches, broken somewhere in 1.5 2007-04-05 12:47:20 +00:00
robocop
6b4ec2b1d4 Corrections from Adriano. 2007-04-01 13:02:46 +00:00
robocop
e71a03261c This is the full SafeArg implementation for getting rid of the fixed parameter types in the messages db. Alas, the legacy messages (before FB2.1) can't be changed in number of arguments neither the types of arguments sent by callers of the MsgPrint family or the fb_msg_format functions can be changed because old clients know these legacy messages and would crash. 2007-03-28 04:20:36 +00:00
robocop
87c9f2bcc4 Apply solution for CORE-1129. Thanks to Bill Oliver.
I didn't change install_reg, install_svc and fbcpl's fbdialog.
2007-02-15 10:35:09 +00:00
robocop
6559c68da7 Misc. 2007-02-15 10:20:07 +00:00
dimitr
c6c688180a Restored the legacy entrypoint as suggested by Claudio many months ago.
It's imported by pre-v2.1 utilities.
2007-02-14 11:38:11 +00:00
robocop
409ff041dd Misc and replaced "IB" by "FB" where it made sense to me. 2007-02-11 09:04:54 +00:00
robocop
d009be834f Misc. 2007-02-09 08:34:16 +00:00
asfernandes
cec7eaa8b6 Some changes based on Claudio's comments 2007-01-21 15:35:35 +00:00
robocop
8a06c80028 Simplification and indentation. 2007-01-21 07:46:41 +00:00
asfernandes
aca179f398 Full domain support and NOT NULL in PSQL 2007-01-17 01:19:01 +00:00
dimitr
928f30097f Misc. 2007-01-07 12:45:50 +00:00
dimitr
8bb4e03a7b Misc. 2006-12-30 11:35:22 +00:00
robocop
d2e510c013 Avoid crashes due to mismatch in msg file (helps mostly while developing). 2006-10-17 06:23:53 +00:00
asfernandes
55ec30965d REPLACE statement 2006-09-03 01:09:23 +00:00
asfernandes
b7af27215e Allow usage of domains in PSQL (with TYPE OF syntax) 2006-08-19 02:52:39 +00:00
hvlad
8f55191456 Make blr_blob2 handling in blr printer consistent with other data types 2006-07-31 18:32:48 +00:00
dimitr
e0e0b602be Updated the BLR printer to handle all FB2 features. 2006-07-31 08:07:21 +00:00
hvlad
ed5d2fe9aa Fixed error noted by Adriano 2006-07-31 06:33:30 +00:00
asfernandes
273da882bc Misc 2006-07-31 01:46:52 +00:00
hvlad
75a9c90ad7 Blr printer was not aware of blr_blob2 2006-07-30 20:00:21 +00:00
hvlad
fac53c8177 Added blr_src_info. Error call stack now contains not only
procedures\triggers names but line\column numbers also.
Thanks to Eugeney Putilin for idea
2006-07-04 14:44:43 +00:00
robocop
991de0b29e Make LC_MESSAGES env var work as expected (get only filename) for an alternative messages file held in the INTL dir. 2006-06-08 05:02:34 +00:00
dimitr
7cc12e8489 1) Reworked memory management in SORT. Now we're pools aware there.
2) Reworked error handling in SORT and its callers.
3) Replaced DLS+SortMem with the generic TempSpace class.
4) Replaced GDS temp file management with the TempFile class.
5) Various cleanup.
2006-05-31 08:53:00 +00:00
hvlad
701f2cbda4 Global temporary tables implementation 2006-05-21 22:07:35 +00:00
alexpeshkoff
b056a118b5 1. Avoid use of STL
2. Reworked exceptions to make status_exception always hold correct status vector
3. Avoid use of RTTI
2006-05-19 15:17:02 +00:00
dimitr
afa0f666b8 Threading cleanup. More to follow. 2006-05-01 04:12:30 +00:00
robocop
c07aa9d25f Stop complainers related to the argument types of fb_interpret. 2006-04-06 06:32:47 +00:00
robocop
7bf526c096 Misc. 2006-03-08 03:10:48 +00:00
robocop
1f84bac700 Mark unused data members, discover more code associated to conditional compilation, clean some places, replace custom loops by memcpy and memset when possible, etc. 2006-02-23 05:08:26 +00:00
robocop
3389149564 The files rng.cpp, rng.h, rng_proto.h, bookmark.cpp and bookmark.h belong exclusively to PC_ENGINE, that's obsolete functionality.
Tenth step: some code was tagged PC_ENGINE but was for SCROLLABLE_CURSORS instead, hence restore it. Also, clean unused data members, obsolete BLR verbs and the like.
2006-02-07 08:08:49 +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
97122ee389 Replace jrd_time.h by our timestamp.h, but I left timestamp.h's #includes commented where it *seemed* not necessary. 2006-02-03 08:39:36 +00:00
robocop
8b99699398 Do not lose time getting the accurate timestamp from the operating system if we are going to override it imediately with the user supplied value in isc_encode_date and isc_encode_timestamp. Also, this avoids an exception escaping from the API functions if the system call fails. 2006-02-02 00:03:29 +00:00
robocop
b67b0219ab Change from getenv to readenv. This is still getenv in Linux/UNIX but GetEnvironmentVariable in Windows. 2006-01-14 04:48:59 +00:00
dimitr
cf3ed06d9c Fixed POSIX builds. 2005-12-28 10:07:54 +00:00
robocop
a44464d73c Do not use the harcoded c:\Program Files path while possible: it doesn't have to live in the C: partition and it's localized in non-English Windows versions. 2005-12-25 07:43:04 +00:00
robocop
9202047a0f Solve chicken and egg problem: when we can't locate the config file, we throw an exception but if we try to trap and decode the failure in another place, it tries to know the location of the messages file (to interpret the status vector), which in turn requires to locate the config file. Therefore, we crash mysteriously. 2005-12-25 04:42:13 +00:00
robocop
82ebc3ab64 Fix the non-VMS version of gds__validate_lib_path:
We shouldn't modify the result from getenv().
Also, fix some null terminator issues.
2005-12-23 23:11:57 +00:00
robocop
f00fc0ff56 1.- Make "vec" type safe and get rid of several code contortions. Fix some small bugs meanwhile.
2.- Put inside PC_ENGINE several data members that belong to that feature.
3.- Put inside PC_ENGINE the code that does cleanup on those unused data members.
2005-12-02 07:35:34 +00:00
dimitr
29f2f43359 Fixed the bug I introduced with my GDS changes. 2005-11-29 11:36:06 +00:00
dimitr
905a2e46f8 Fixed builtin lookups for error messages and SQLCODEs.
IMPORTANT!!! You have to rebuild the tree from scratch!
2005-11-24 11:53:55 +00:00
dimitr
2382db581e Reworked the BLR printer to use Firebird::string as its buffer. 2005-11-24 08:34:16 +00:00
dimitr
c236dc4a73 1. Fixed memory corruption in filters.cpp
2. Increased internal buffer in gds.cpp to avoid overflows
3. Made this buffer dynamically allocated to avoid stack corruptions
4. Minor cleanup
2005-11-23 20:18:19 +00:00
robocop
3d53c1b75b Let's hope this fixes the incompatibilities between safe_interpret and the old gds_interprete. 2005-09-24 05:09:05 +00:00
alexpeshkoff
d15f6b11fc avoid unpredictable behaviour of gds__log() on posix in signal handlers 2005-08-29 14:57:43 +00:00
skidder
9f04361ab1 Oops, committed some debugging code which was not supposed to be exposed to public :-) 2005-07-21 00:44:14 +00:00
skidder
286c14843b Global handles need to be closed or we have the leak during client/engine DLL unload.
The cleanest solution would be to port FileObject from BV3 branch here and use it,
but this hack will do either.
2005-07-21 00:42:51 +00:00
skidder
699c914cbf little debug logging improvements 2005-07-19 23:27:38 +00:00
asfernandes
354a158736 Misc. 2005-06-06 20:44:10 +00:00
asfernandes
59213efe7e Merge INTL branch into HEAD 2005-05-27 22:45:31 +00:00
alexpeshkoff
63c5cebdcf fixed embedded build 2005-05-16 11:08:14 +00:00
alexpeshkoff
74c88a4e97 fixed a couple of buffer overflows in gds__prefix*() functions family 2005-05-14 10:45:40 +00:00
robocop
1caceee875 Use static_cast when converting from void*, not reinterpret_cast. 2005-03-26 05:39:44 +00:00
robocop
014d90ff59 Misc. 2004-12-08 04:12:26 +00:00
robocop
af6a16107a Misc. 2004-11-30 06:18:39 +00:00
robocop
bb170bd3b6 isc_interpret is fb_interpret again.
Please do a full rebuild.
2004-11-28 01:03:05 +00:00
robocop
d6535351a2 Misc: style. 2004-11-24 09:22:07 +00:00
dimitr
1859b19b9a Added missing BLR handling to the internal blob filter 2004-11-17 18:18:44 +00:00
robocop
eb99bbcccf Poor man's version of the old gds_alloc_report. 2004-11-17 08:56:07 +00:00
alexpeshkoff
ea9e900ab3 cleanup of methods, storing data in plain char* 2004-11-14 18:05:13 +00:00
robocop
e5be73b048 Misc: extra semicolons do not help. :-) 2004-11-07 10:47:20 +00:00
robocop
e1573bf6ce Fix wrong comment due to copy/paste. 2004-11-06 07:17:18 +00:00
skidder
933063c7ce Slightly adjust Dmitry's Firebird::TimeStamp class to make it more useful, change is coordiated with Dmitry. Use thread-safe localtime_r routine when it is available 2004-11-04 19:14:20 +00:00