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

213 Commits

Author SHA1 Message Date
dimitr
8b45562f81 The DSQL code of the LIST function. Unstable yet. 2006-04-24 17:24:26 +00:00
hvlad
a2afa1051e Fixed unregistered bug: AV in request driven by freed cursor
(when request is dropped flag REQ_orphan is set for child requests but
this flag is never checked)
2006-01-27 07:36:17 +00:00
alexpeshkoff
fb6757bbed fixed gcc warning(s) 2006-01-16 16:31:15 +00:00
robocop
90174410a2 Let Ivan Prenosil test his beloved transaction options. 2005-11-17 04:22:10 +00:00
hvlad
f89e461887 Cached charsets by id (not only by name) in dsql. Removed irq_cs_bpc request as unneeded anymore 2005-11-16 07:49:28 +00:00
robocop
016931bb63 What about putting the nodes you added in node.h also in the DSQL debugging facilility, folks?
:-)
2005-11-12 23:36:09 +00:00
dimitr
5e8af7b048 Implemented RECREATE TRIGGER. 2005-10-29 09:15:37 +00:00
hvlad
1b26b6e6b5 Make code more robust. Reported privately by Tom Cole 2005-09-27 19:23:24 +00:00
robocop
aab2d20725 - Get rid of DBB_v3 in DSQL and put a message just in case we find ODS<=7 (impossible in theory, since FB wouldn't open such db).
- Put mnemonics for two hardcoded error msgs I hijacked from DYN years ago. Now they are defined for the SQLERR facility.
2005-09-10 07:15:24 +00:00
dimitr
81b86138b3 Correction. 2005-07-20 12:49:56 +00:00
dimitr
1a3218625d Added DSQL support for ROLLBACK RETAIN. 2005-07-20 10:05:57 +00:00
robocop
e28ed6b27c Try to indicate position of incomplete commands.
Some casts because statuses are fixed 32 quantities, not natural int types.
2005-06-16 05:11:08 +00:00
robocop
3a8cd43a05 Please Dmitry and try to report the line/column of an incomplete statement. 2005-06-11 00:20:22 +00:00
asfernandes
559ce29c51 1) Replace length_ to strlen as noted by Claudio and Dmitry
2) Change USHORT to ULONG in intl.cpp
2005-06-06 18:14:10 +00:00
asfernandes
59213efe7e Merge INTL branch into HEAD 2005-05-27 22:45:31 +00:00
robocop
3aaa840483 Misc. 2005-05-22 03:11:41 +00:00
robocop
b490df3a41 ALTER EXTERNAL FUNCTION: be able to change the entry_point or the module_name when the UDF cannot be dropped to correct the declaration because it's used in some view, procedure, trigger or check. 2005-05-22 02:42:17 +00:00
robocop
da0a6bba5b Getting rid of commented code that belonged to the dead shared cache and/or WAL plus fixing some indentation. 2005-05-19 07:34:46 +00:00
robocop
0285f6bf76 - Implement the proposed COMMENT keyword to allow descriptions in database objects. Subject to change or withdrawal.
- Enhance some messages. Reuse some msg numbers that were duplicate.
- Fix some issues found in Alex recent MetaName-related commits.
2005-05-17 07:17:25 +00:00
robocop
da0b4784b6 Misc. 2005-03-31 06:21:55 +00:00
robocop
dec3481e28 Variables in context. 2005-03-30 05:12:02 +00:00
dimitr
67e30e2dc3 Removed short-curcuit prepare for EXEC PROC requests. 2005-03-29 06:09:37 +00:00
dimitr
d25fcdc0c4 Implemented RECREATE EXCEPTION and CREATE OR ALTER EXCEPTION. 2005-03-26 16:11:52 +00:00
dimitr
fa8f456325 Fixed server crashes related to some plan buffer overflows. 2005-03-23 07:14:12 +00:00
dimitr
3f3eb11ba4 Return relation alias via API. SQLDA stays untouched for the time being. 2005-01-23 15:53:36 +00:00
robocop
7e306b86a8 Misc. 2005-01-12 04:20:17 +00:00
alexpeshkoff
dd2f879401 dsql_set_cursor_name cleanup 2004-12-26 15:32:49 +00:00
robocop
0dd1aced53 Misc. 2004-12-09 02:50:47 +00:00
robocop
5e8ed6c4d3 Prevent buffer overrun. 2004-12-08 05:59:42 +00:00
alexpeshkoff
991d78d626 a bit better approach to setup dsql thread context 2004-12-05 11:51:47 +00:00
skidder
c40eb08a27 Remove CURRENT_DATABASE keyword 2004-11-22 20:50:34 +00:00
dimitr
c1cab92cab 1) Reworked error reporting
2) Allowed positioned updates for explicit cursors
3) Fixed some possible server crashes
2004-11-17 14:50:33 +00:00
skidder
1e26d6c80d CURRENT_DATABASE implementation. Established identity may also be used for isc_info_db_id datum 2004-11-11 05:37:52 +00:00
robocop
5a33aeef91 Misc: extra semicolons do not help. :-) 2004-11-07 10:38:13 +00:00
aafemt
ded2e9ee92 Variable shadowing 2004-10-27 10:14:30 +00:00
dimitr
cd413c9b8a Added the equivalence operator. The major index optimizations are done.
Notes:
1) Some optimizations will follow after more deep analysis.
2) The syntax "==" is not yet agreed on. I'd prefer it to be changed.
2004-10-14 18:54:54 +00:00
robocop
ba48b1d1c9 Style 2004-10-07 08:27:45 +00:00
robocop
31ba754981 After talking to Ann, decided to disable several items:
- obsolete items like WAL and JOURNAL (cleaned in the past)
- crud from attempts never finished like the shared cache manager for Classic
- DSQL nodes that aren't used. This allowed freeing some keywords.
The functionality was disabled by commenting the code. No code has been deleted.
2004-10-03 04:49:04 +00:00
robocop
600a01d64e Make compiler happy... nobody wants a cursor name with length 2^31 2004-09-26 07:41:39 +00:00
robocop
592d47e77e Replace custom name_length() by the general one that uses the same logic 2004-09-26 07:26:42 +00:00
robocop
cc8beb54e5 Get rid of some reinterpret_cast's. 2004-09-09 09:24:42 +00:00
robocop
8c2bc04f38 Style 2004-09-09 08:56:33 +00:00
alexpeshkoff
9ff8b3b687 fixed problems, noticed by Claudio 2004-09-06 08:14:34 +00:00
dimitr
6ad51cf6e8 Fixed my mistake in the plan output. Noticed by Arno. 2004-09-02 07:10:34 +00:00
alexpeshkoff
c3db4aaa97 added (and used in sources) template to change and restore default pool 2004-08-30 18:11:08 +00:00
robocop
27d4dbd374 Not an aesthetical achievement, but prevent us from making mistakes in the same place again. Put variables in their minimal scope. 2004-08-21 09:20:06 +00:00
dimitr
d667e17db5 Fixed uninitialized variable usage reported by Valgrind. 2004-08-20 02:08:39 +00:00
alexpeshkoff
31039a254e next step preparing to allocate auto objects memory from appropriate pool 2004-08-16 12:28:43 +00:00
skidder
22f14639a0 Do not send stack and memory dumps to remote client when isc_dsql_sql_info and isc_dsql_prepare functions are used. Again, issue is pinpointed by Valgrind 2004-08-13 02:32:30 +00:00
brodsom
4d2979865a Correction (noticed by Claudio) 2004-07-02 07:26:18 +00:00
brodsom
d2b64735c6 Removing wrong extra ; 2004-06-13 23:47:02 +00:00
alexpeshkoff
1591a54e5e Thread cleanup:
1. Added macros to declare thread entrypoints
2. THD_mutex_* functions use Firebird::Mutex
3. Thread local storage use fb_tls.h
2004-06-08 13:41:08 +00:00
brodsom
06f7148859 -Replace *_thread_data macros with inline functions 2004-05-22 14:23:10 +00:00
brodsom
68cb86b274 - Remove *_THREAD_DATA definitions from thd.h, are unneeded and conflicts with definitions in providers/services main headers (which need to use undef).
- Use different names for each service/provider *_THREAD_DATA macros.
2004-05-19 18:14:29 +00:00
brodsom
b76a60e8b7 Move THREAD_ functions from thd.h to thread_proto.h (and fix unix build) 2004-05-17 22:30:09 +00:00
brodsom
ee34db7e20 Macro cleaning (THREAD_*) 2004-05-15 00:58:46 +00:00
brodsom
6ec150ac00 -Avoid gcc -pedantic warnings 2004-05-14 19:20:01 +00:00
robocop
802f244ec1 Misc changes 2004-05-09 05:48:33 +00:00
skidder
45fc09ce60 Fix bugs in my commit found by Claudio 2004-05-05 04:20:39 +00:00
skidder
43cb0d1ce4 Y-Valve handle translation layer 2004-05-02 23:06:37 +00:00
brodsom
a549091c94 - Split sqlda.h to avoid duplicated definitions between ibase.h and sqlda.h
- Replace define for constants
- Remove contants.h where not used.
2004-04-30 22:47:16 +00:00
brodsom
e0854daa99 Removing ib_stdio.h 2004-04-28 22:00:03 +00:00
alexpeshkoff
e0ce53cbec fixed number problems after lls to Stack conversion 2004-04-21 14:23:46 +00:00
alexpeshkoff
045e9dc8ec 1. removed any mentions of blk_pool() from engine (and method itself)
2. replaced 'struct lls' with 'template Stack'
2004-04-18 14:22:27 +00:00
robocop
59b235cea3 Small corrections 2004-04-10 00:25:22 +00:00
alexpeshkoff
2934843020 fixed memory leak in execute statement 2004-03-31 17:27:08 +00:00
alexpeshkoff
7007d6f2a4 1. introduced Jrd and Ods namespaces
2. cleanup of blk* request conversions
3. fixed memory allocation in Execute Statement
2004-03-20 14:57:40 +00:00
robocop
f58c769c37 Cleanup. In geeky words:
PandoraBox* pbox = reinterpret_cast<PandoraBox*>(&can_of_worms);
pbox->open();
pbox->flush();
Nickolay may want to undo my ods.h changes if gcc insists
in its crusade against non-PODs and poodles.
2004-03-18 05:56:06 +00:00
skidder
c64f31b712 Fix some warnings from GCC/Linux build. Some of them were subtle errors 2004-03-12 07:00:52 +00:00
robocop
2ab1f94dd2 Cleanup
Some minor corrections
Second step to rename
2004-03-11 05:04:26 +00:00
skidder
b6e5ccd413 Clean up.
1. gds__alloc doesn't throw
2. Add NOMEM handlers to a couple places
3. kill HAVE_*SNPRINTF conditionals
2004-03-09 00:17:07 +00:00
robocop
e6187cecd2 Cleanup
Some bug fixes
Style
2004-03-07 07:58:55 +00:00
skidder
dc7aab8f9c Fix up exception handling. Handle (do not ignore) std::bad_alloc and generic exceptions, provide syscall and error information in system_call_failed 2004-03-01 03:35:23 +00:00
robocop
663e3b16e7 Cleanup 2004-02-02 11:02:12 +00:00
robocop
2b295a9108 General cleanup. Sorry if I missed some occurrence. 2004-01-28 07:50:41 +00:00
skidder
08eee5ebaa Further AMD64 fixes. Given this fixes you may start playing with databases using isql_static. 2004-01-21 07:18:30 +00:00
hvlad
d09206678b Added support for default parameters and EXECUTE BLOCK statement 2004-01-16 10:43:21 +00:00
robocop
ad0b5c4de3 General cleanup 2003-12-22 10:00:59 +00:00
arnobrinkman
b573aeedd0 bugfix: Post a error when no input string is given else engine will crash. 2003-12-11 00:00:51 +00:00
robocop
9fafc348bf const correctness
vars in scope
minimal interface cleanup
small bug fixes
2003-11-28 06:48:34 +00:00
brodsom
6e8e00c191 -Undo gds__vax_integer to isc_vax_integer and gds__event_* to isc_event_* changes 2003-11-16 01:44:51 +00:00
brodsom
c5253ae8a5 -Replace gds__ constants with isc_ contants
-Replace codes.h with iberror.h (or remove)
-Move gds__vax_integer and gds__event_block* to alt.cpp and isc_ to gds.cpp
-Use ISC_QUAD internally
-Use isc_vax_integer internally
2003-11-11 12:19:20 +00:00
robocop
f55c6f6f8c const correctness and cleanup 2003-11-10 09:16:38 +00:00
brodsom
7d3057ca84 -Removing gdsold.h and gds.h
-Replace gds__ functions with isc__ functions for internal use
2003-11-09 15:38:03 +00:00
brodsom
43683ea52b Removing gdsold.h 2003-11-07 23:27:24 +00:00
dimitr
270dcf6aa0 Added ROWS clause. FIRST/SKIP remains allowed in unions, although I still think it doesn't have much sense. 2003-11-07 14:10:16 +00:00
brodsom
ff070a16a8 Replacing assert with fb_assert 2003-11-03 23:59:24 +00:00
robocop
cda707bd36 const correctness and other related changes 2003-11-01 10:26:43 +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
8182b6cba2 const correctness and other tasks 2003-10-16 08:51:06 +00:00
brodsom
938e66eb2f Macro cleaning 2003-10-14 22:22:32 +00:00
robocop
e0b551838f style 2003-10-05 06:33:56 +00:00
brodsom
db312dfa0e Macro cleaning
extern cleaning
DLL_EXPORT cleaning
2003-10-03 02:00:40 +00:00
aafemt
76eac2d80d Move MSVC-related hack of vsnprintf to MSVC header because it crashed MinGW build 2003-10-02 10:17:40 +00:00
aafemt
b5994fabad sym -> dsql_sym + some 'struct' cleanup 2003-10-01 10:58:07 +00:00
brodsom
7f07d2a8a8 Patch to make msvc build again after Nickolay changes 2003-09-30 22:59:12 +00:00
skidder
7d3c07f5a1 Remove unused DSQL node types 2003-09-29 19:32:11 +00:00
skidder
16cb0d2f2d Fix cosmetic issue noted by Claudio 2003-09-29 10:48:48 +00:00
skidder
235db035ce Ok, i'm joining Firebird destruction team with my cleanup:
1. Bring trace DSQL, DYN and BLR trace logging up-to-date
2. Remove redundant CSB pointer dereferences in BLR parser and request compiler
3. Convert RIGHT JOIN to LEFT JOIN early during BLR parsing
4. Check BLR syntax for unititalized contexts usage
5. Some type-safety and const-correctness fixes
2003-09-28 21:36:05 +00:00
brodsom
4c9f386bd2 Macro cleaning 2003-09-28 00:36:28 +00:00