dimitr
8d6e675b75
Always zero blr/message memory before usage.
...
Otherwise a reused message may cause garbage to be copied to XDR
which in turn may cause asynchronous exceptions in the asymmetric protocol code.
2005-01-18 15:04:07 +00:00
robocop
72e54eb27d
First attempt to fix SF Bug #512975 .
...
Please let me know if the problem disappears or there's a bad side effect that I didn't detect.
2005-01-17 09:16:40 +00:00
robocop
6eabbaf772
Fix irrelevant SF Bug #512975 .
...
CR-LF => blank. No trimming is made.
2005-01-12 05:09:42 +00:00
robocop
8b573aa0da
Change the license with Mark's permission.
2005-01-12 04:22:32 +00:00
robocop
7e306b86a8
Misc.
2005-01-12 04:20:17 +00:00
arnobrinkman
383926e046
Fix another check constraint and ambigous field problem.
...
Are there any more options left?, sigh: tablename, NEW, OLD, TEMP
2005-01-06 18:17:10 +00:00
arnobrinkman
0dca8c738d
Fix sub-select in derived table issue (context already in used error)
2005-01-06 13:14:38 +00:00
dimitr
3d826cc06c
Minor corrections.
2005-01-05 12:15:51 +00:00
dimitr
f2d2ad2542
1. Allowed implicit NOT NULL declaration for a PRIMARY KEY constraint (per SQL-99)
...
2. Minor fixes and cleanup
2005-01-04 13:17:16 +00:00
robocop
b5317a413a
Totally misc.
2004-12-31 10:41:43 +00:00
alexpeshkoff
dd2f879401
dsql_set_cursor_name cleanup
2004-12-26 15:32:49 +00:00
robocop
d65307b497
Style.
2004-12-24 08:52:39 +00:00
robocop
24742873ad
fb_string.h is moved to common/classes.
2004-12-17 05:41:47 +00:00
arnobrinkman
ff9070d8e5
remove optimization in DSQL, this is now done in the optimizer (the place where it belongs)
2004-12-15 20:15:20 +00:00
robocop
3efa4c7648
Misc.
2004-12-12 02:03:58 +00:00
robocop
86fe265ff1
Put some variables in context.
2004-12-12 01:58:43 +00:00
robocop
5291dc6544
Restore checks for length. We don't need tokens bigger than 1KB.
2004-12-12 01:57:19 +00:00
robocop
430ad70ed4
Misc.
2004-12-11 00:08:55 +00:00
alexpeshkoff
387e678cca
applied Clumplet* classes to dpb where possible
2004-12-09 19:19:47 +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
robocop
950216de4e
Misc.
2004-12-08 05:58:41 +00:00
alexpeshkoff
637e5ed95a
use new classes to preparse 'create database' statement
2004-12-05 11:57:25 +00:00
alexpeshkoff
991d78d626
a bit better approach to setup dsql thread context
2004-12-05 11:51:47 +00:00
dimitr
ab51816298
Fixed issues spotted by Claudio.
2004-12-03 07:07:15 +00:00
dimitr
882b8defe4
Restored datatype.
2004-12-03 06:49:01 +00:00
robocop
3ca7f5afb7
Misc.
2004-12-03 06:24:18 +00:00
dimitr
28ed1df100
1. Parser cleanup
...
2. SQL-99 synonyms for generators DDL/DML
3. Implemented REVOKE ADMIN OPTION FROM
2004-12-02 22:53:51 +00:00
arnobrinkman
8a079ca3d7
Fix check constraint bug with "ambigous fieldname" error
2004-12-02 18:57:01 +00:00
robocop
af6a16107a
Misc.
2004-11-30 06:18:39 +00:00
robocop
fd2bcc04e4
frb_sys_flag becomes fb_sys_flag
2004-11-29 09:09:42 +00:00
robocop
de3c7670dd
Misc.
2004-11-29 09:08:02 +00:00
arnobrinkman
664dddc827
bugfix: Making a derived field on a mapping failed when the mapping was mapping to another derived field.
...
Make also a derived field from a derived field node.
2004-11-28 22:38:45 +00:00
robocop
45d4cd976a
Silence warning.
2004-11-28 03:44:24 +00:00
dimitr
36e0f1449a
Fixed bug introduced some time ago by myself.
2004-11-27 21:19:58 +00:00
skidder
0850b03c7a
Regenerate parse.cpp
2004-11-25 01:38:04 +00:00
skidder
e823628754
Dmitry asked me to add support for calling UDF routines ignoring return arguments so did I
2004-11-25 00:47:20 +00:00
dimitr
05dd909c6c
Fixed my SEGV, thanks to Adriano.
2004-11-24 13:33:05 +00:00
robocop
d6535351a2
Misc: style.
2004-11-24 09:22:07 +00:00
robocop
ab23729381
Misc.
2004-11-23 04:05:49 +00:00
skidder
98381ac8a1
Regenerate parse.cpp
2004-11-22 20:53:14 +00:00
skidder
c40eb08a27
Remove CURRENT_DATABASE keyword
2004-11-22 20:50:34 +00:00
arnobrinkman
d599c8f945
Fix bug in aggregate-functions which burried EXISTS/SINGULAR predicate.
...
See bug #1063254
2004-11-17 22:01:44 +00:00
dimitr
d40cf9430d
Some corrections and cleanup.
2004-11-17 18:27:48 +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
628b088d2c
Treat string literals and string constants with more respect.
2004-11-10 04:26:45 +00:00
robocop
71fd4ed0a7
Const and use symbolic constants instead of harcoded 20.
2004-11-08 03:15:07 +00:00
robocop
a7498d91e6
Treat string literals and string constants with more respect.
2004-11-08 03:14:17 +00:00
robocop
5a33aeef91
Misc: extra semicolons do not help. :-)
2004-11-07 10:38:13 +00:00
arnobrinkman
4d2a4f6925
bugfix: still were some ambiguous queries possible.
...
fe: select rdb$database.rdb$relation_id from rdb$database, rdb$database
2004-11-02 23:07:09 +00:00
dimitr
7506b3568c
Changed non-standard WEEKDAY and YEARDAY extentions to become non-reserved words.
2004-10-27 12:14:54 +00:00
aafemt
ded2e9ee92
Variable shadowing
2004-10-27 10:14:30 +00:00
dimitr
42c929cfb1
Ported UPDATE/DELETE extentions from Yaffil.
2004-10-27 09:33:08 +00:00
robocop
8cb395414e
Misc.
2004-10-26 07:21:47 +00:00
robocop
34543622a4
a) Error reporting functions must not overflow their buffers.
...
b) Use ISC_STATUS type when dealing with status vector.
2004-10-18 07:19:36 +00:00
robocop
9ac850c3aa
Totally misc.
2004-10-18 06:48:33 +00:00
dimitr
a9370eefa8
Replaced "==" with a SQL-99 compliant distinct predicate.
2004-10-17 08:47:15 +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
dimitr
a9772bd861
Restored the old code layout, as suggested by Claudio.
2004-10-14 16:35:13 +00:00
dimitr
a1bbad7ccf
The entire RSE handling in the parser is slightly rewritten. New join syntax is introduced.
...
Notes:
1) Some features are disabled (via isc_wish_list) yet due to their incomplete implementation.
2) The parser may become unstable or cause regressions. It will be fixed ASAP.
2004-10-13 18:37:53 +00:00
robocop
a8da598248
Redundant casts.
2004-10-08 11:08:42 +00:00
robocop
2928b139ae
1.- Style.
...
2.- The const_cast is no longer needed.
2004-10-07 08:28:47 +00:00
robocop
ba48b1d1c9
Style
2004-10-07 08:27:45 +00:00
robocop
ed17cfafbf
Style:
...
if<space>(
for<space>(
switch<space>(
while<space>(
2004-10-04 08:15:00 +00:00
dimitr
9efeab8808
Fixed AV in the parser.
2004-10-03 11:39:03 +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
cf0f2761a4
parse.cpp needed to be rebuilt after Alex' changes
2004-09-27 03:42:58 +00:00
robocop
20b38f1aad
Got rid of spurious cast.
2004-09-26 11:23:32 +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
840bf14b36
If we are using namespace fb_utils, it doesn't make sense to prefix functions in it with fb_ again. Mechanical replacement made one by one (no bulk automatic changes).
2004-09-26 01:49:52 +00:00
robocop
7dcb66a250
When you call va_start, call va_end, don't assume it does nothing because some platforms don't have code for it!
...
Changed some sprintf to SNPRINTF. Work in progress WRT wrapper for this function.
2004-09-25 10:28:09 +00:00
robocop
6ae1fd9918
Style
2004-09-24 06:48:24 +00:00
dimitr
5a67d3a091
Fixed yet another issue with make.cpp noticed by Dimitry Sibiryakov.
2004-09-22 06:54:17 +00:00
dimitr
39a718784b
Fixed another my bug, spotted by Arno.
2004-09-13 19:36:30 +00:00
dimitr
72e9a4923b
Correction.
2004-09-12 10:48:55 +00:00
robocop
cc8beb54e5
Get rid of some reinterpret_cast's.
2004-09-09 09:24:42 +00:00
robocop
33c2a7eb17
Totally misc: typo in comment
2004-09-09 08:58:13 +00:00
robocop
8c2bc04f38
Style
2004-09-09 08:56:33 +00:00
alexpeshkoff
5ba5453a30
fixed AV in DECLARE FILTER
2004-09-08 12:01:30 +00:00
dimitr
0256d424e1
Allowed UNION DISTINCT equal to just UNION (see chapter 7.13 of the SQL spec).
2004-09-06 19:17:16 +00:00
alexpeshkoff
9ff8b3b687
fixed problems, noticed by Claudio
2004-09-06 08:14:34 +00:00
dimitr
f32272d076
Fixed a bug I introduced today.
2004-09-05 21:50:54 +00:00
dimitr
e58ba55a55
Solved issues with literal NULLs in the CASE-based functions.
...
To be reviewed by Arno.
2004-09-05 07:23:42 +00:00
dimitr
f45dc04f6a
Allowed EXTRACT(<part> FROM NULL) to return NULL of SMALLINT/INT (depending on <part>) datatype.
2004-09-04 18:43:11 +00:00
dimitr
cf89467735
Let's describe literal NULLs correctly in expressions.
2004-09-04 18:24:12 +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
092dd6297e
BY SCALAR_ARRAY param can't be used as a return param.
...
There's no support for that. It's only input param to the UDF.
2004-08-27 09:24:39 +00:00
robocop
1994913da7
Bring DSQL up to date with UDF capabilities in the engine.
...
Introduce SCALAR_ARRAY token.
2004-08-27 04:52:32 +00:00
arnobrinkman
ce97981b91
Fix unneeded error-message with simple CASE and NULL (NULL as text in SQL)
...
CASE NULL WHEN NULL THEN 1 END
2004-08-22 00:53:04 +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
dimitr
e5ef9b2782
Ported IIF function from Yaffil.
...
Implemented as yet another abbrevation for CASE.
Added as a non-reserved keyword.
2004-08-19 11:19:48 +00:00
skidder
a294b74cb8
Fix one more possible random crash noted by Valgrind. This particular problem is old and happens when UNION DSQL construct is used. Fix is the result of consultations with Arno Brinkman
2004-08-18 18:33:21 +00:00
skidder
1460ac61db
Fix one more serious issue noted by Valgrind. Views could be randomly using blr_singleton when defined
2004-08-18 00:02:24 +00:00
dimitr
c1407600f5
Allowed NULL to be a syntactical value.
2004-08-17 13:25:34 +00:00
dimitr
56e0b95ca5
Allow the DDL engine to understand literal NULLs in computed fields.
2004-08-17 11:19:41 +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
dimitr
9dc9adf017
Fixed implementations of concatenation and SUBSTRING function.
...
Used new messages for error reporting. Changes should be fully SQLDA-compatible.
2004-08-02 19:49:12 +00:00
dimitr
d6151c2d8f
Fixed minor issue.
2004-08-01 18:01:54 +00:00
skidder
b980507ad2
Valgrind support
2004-07-30 22:38:08 +00:00
skidder
5494b34caa
size_t is more correct type for container sizes and indices
2004-07-16 23:06:31 +00:00
brodsom
4d2979865a
Correction (noticed by Claudio)
2004-07-02 07:26:18 +00:00
skidder
43e98c3f52
Fix crash when changing data type for field and specify wrong type or domain name
2004-07-01 00:46:10 +00:00
arnobrinkman
8cde3d2aee
1) Fix FB2 problem with union-auto-cast and losing field-name as column-name
...
2) Fix FB2 problem with WITH CHECK OPTION
2004-06-29 22:15:10 +00:00
robocop
320fe78b42
Misc changes
2004-06-21 02:48:47 +00:00
arnobrinkman
ffd4d94124
Fix problems with NUMERIC and DECIMAL datatypes in MAKE_desc_from_list() for Dialect 1.
...
This affects CASE, COALESCE and the auto-union cast.
2004-06-19 21:29:50 +00:00
brodsom
d2b64735c6
Removing wrong extra ;
2004-06-13 23:47:02 +00:00
skidder
6460544617
Fix 64-bit build
2004-06-13 23:27:29 +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
robocop
1332d98618
Literal strings should be treated as const char*
2004-06-05 09:37:18 +00:00
kkuznetsov
a594b29c57
Fixed some more different prototypes of the same functions
2004-06-04 14:36:45 +00:00
kkuznetsov
0d0c58387d
Fix linkage errors caused by different declaration of extern "c" functions
2004-06-03 10:08:31 +00:00
robocop
f8f159dc9e
Changing some variables that have a trailing underscore to allow conflict with C++ keywords or engine structs.
2004-05-31 02:34:35 +00:00
robocop
5b282ef4b5
Misc: keep comment in sync with code
2004-05-29 04:36:09 +00:00
alexpeshkoff
9a34ce553c
make bool (isEmpty/hasData) checks for string and stack safe
2004-05-27 16:26:52 +00:00
brodsom
a799e5f44b
-Use C++ struct declaration style.
2004-05-24 17:22:35 +00:00
skidder
ed7234e65e
Fix problem with UDF argument mapping to parameters reported by Torsten Grundke
2004-05-24 12:09:12 +00:00
brodsom
75a0483d75
-Comment some common.h unused macros
...
-Replace VA_START macro with va_start function (it was already some places where it is not used)
2004-05-23 23:28:06 +00:00
brodsom
06f7148859
-Replace *_thread_data macros with inline functions
2004-05-22 14:23:10 +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
964219523c
Move SQL_DIALECT constants from ibase.h to sqlda_pub.h and use it in gpre.h instead the full ibase
2004-05-20 00:58:55 +00:00
brodsom
908ceca06c
Update
2004-05-19 20:12:44 +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
98d9fe6e63
Macro cleaning
2004-05-18 16:32:07 +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
brodsom
141fe5aae7
-Removing c++ comments from public headers
2004-05-14 16:23:41 +00:00
brodsom
996b40079f
-Avoid shadow warning
2004-05-13 00:33:17 +00:00
brodsom
8699aec9c9
-Avoid shadow warning
2004-05-12 19:23:17 +00:00
brodsom
b30a0b8799
Macro cleaning
2004-05-12 00:02:37 +00:00
robocop
802f244ec1
Misc changes
2004-05-09 05:48:33 +00:00
brodsom
62a4b10c22
-Replace define with const
...
-Remove ifdef cplusplus from internal code
-Remove unused macros
2004-05-06 18:09:24 +00:00
eku
7009af2b13
Fixed compiler error: cannot convert dsql_nod**' to
dsql_nod*' in initialization
2004-05-06 05:46:24 +00:00
brodsom
b335e32d88
Obsolete compiler message
2004-05-05 13:59:10 +00:00
skidder
45fc09ce60
Fix bugs in my commit found by Claudio
2004-05-05 04:20:39 +00:00
skidder
16cc322505
Regenerate parse.cpp
2004-05-03 04:29:23 +00:00
skidder
e9f8ef102e
Fixes needed to make GCC 3.4 happy
2004-05-03 04:25:06 +00:00
skidder
8a4cb13eb2
Care about quirks of Windows platform
2004-05-03 01:53:24 +00:00
skidder
43cb0d1ce4
Y-Valve handle translation layer
2004-05-02 23:06:37 +00:00
skidder
c73aa5ee46
Please Claudio and do not return descriptors for VARCHAR(32767) for UDFs
2004-05-01 08:33:35 +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
2c0ab256cf
Removing duplicated definitions between
...
ibase.h and blob_filter.h
ibase.h and constants.h
2004-04-29 17:48:39 +00:00
brodsom
2f4865a195
Replace defines for constants
2004-04-29 14:51:02 +00:00
brodsom
e0854daa99
Removing ib_stdio.h
2004-04-28 22:00:03 +00:00
skidder
29481ae5e2
Make CSTRING map to VARCHAR, not CHAR in DSQL layer
2004-04-28 18:36:50 +00:00
alexpeshkoff
e362fdbef3
fixed number problems after lls to Stack conversion
2004-04-21 14:48:23 +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
6d4c0ab908
Three changes to isql:
...
Fix isql bug #910430 .
Add SET HEADING ON/OFF option
Add -M2 command-line option to send output of statistics and plans to the same file than the rest of the output.
Those items do not appear when using HELP SET inside isql or with isql -? from the command line.
2004-04-11 04:04:18 +00:00
robocop
59b235cea3
Small corrections
2004-04-10 00:25:22 +00:00
hvlad
7ab6e4c2f4
Corrects an error at DDL generation when the total size of all generated BLR exceeds 64K, but each slice does not exceed 64K. For ex, procedure sources is 55K and generated BLR is 12K.
...
Note: this fix is safe because jrd8_ddl (DYN_ddl\DYN_execute) do not use parameter 'length', wrongly declared as USHORT
2004-04-09 08:03:59 +00:00
arnobrinkman
fe1e74c504
Fix wrong mapping for Count(*) in having clause when used with IN, ANY, SOME, ALL
2004-04-02 23:20:29 +00:00
skidder
b80d4eb99d
Fix counting of line numbers in DSQL parser when multi-line literals and identifiers are used
2004-04-02 03:24:25 +00:00
alexpeshkoff
2934843020
fixed memory leak in execute statement
2004-03-31 17:27:08 +00:00
robocop
1824343930
Cleanup.
...
Fixed a linking error with MSVC6, too.
2004-03-28 09:10:30 +00:00
skidder
f26d84f76b
1. POSIX build libraries export only public API. 2. Unify exports for PROD_BUILD and DEV_BUILD. 3. Support for context memory pools. 4. Memory manager has lower memory overhead exceptionally on 64 bit targets
2004-03-25 23:12:50 +00:00
arnobrinkman
dd64bc0749
Improved derived table support.
...
When using derived tables inside sub-selects it should be able to reference to higher contexts.
2004-03-21 02:10:39 +00:00
arnobrinkman
217773ac42
1) Field with alias was also seraching for match in higher context then the first matching context found. Noted by Nickolay
...
Example (this does fail now with column o.ID unknown):
SELECT * FROM Orders o
WHERE
EXISTS(SELECT * FROM RDB$DATABASE o WHERE o.ID = 1)
2) Improved derived table support.
When using derived tables inside sub-selects it should be able to reference to higher contexts.
2004-03-21 01:48:29 +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
958f9e31aa
Cleanup
...
A few new[] - delete[] pairs fixed.
2004-03-19 06:14:53 +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
e1b6cec486
Allow using PSQL cursors in EXECUTE BLOCK statement
2004-03-15 02:57:07 +00:00
alexpeshkoff
67f1740fea
Various cleanup to make engine compile and work after mentioned earlier changes.
...
Mainly:
1) MemoryPool* => MemoryPool& in arrays' constructors
2) use Firebird::string to keep strings data
2004-03-14 13:40:14 +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
d92c8805f8
correction
2004-03-05 07:33:22 +00:00
skidder
b3af720a73
Fix memory corruption
2004-03-05 07:23:21 +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
aafemt
fe89c2c502
Fix warning
2004-02-13 11:15:49 +00:00
robocop
663e3b16e7
Cleanup
2004-02-02 11:02:12 +00:00
dimitr
5deb857913
Removed obsolete EXECUTE VARCHAR syntax.
2004-01-31 13:35:37 +00:00
robocop
2b295a9108
General cleanup. Sorry if I missed some occurrence.
2004-01-28 07:50:41 +00:00
stryqx
56cff38d96
Regenerate after changing PAGE_SIZE to KW_PAGE_SIZE.
2004-01-27 07:09:21 +00:00
stryqx
501ba459c9
Change PAGE_SIZE to KW_PAGE_SIZE so as not to conflict with system define
...
on FreeBSD.
2004-01-26 07:06:37 +00:00
skidder
dc9d71a768
Use static bison parser stack and allocate it from thread stack
2004-01-23 06:35:26 +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
b02fbb32a8
Added support for default parameters and EXECUTE BLOCK statement
2004-01-16 13:05:14 +00:00
hvlad
d09206678b
Added support for default parameters and EXECUTE BLOCK statement
2004-01-16 10:43:21 +00:00
robocop
b441cd9aef
Cleanup
2004-01-13 09:52:19 +00:00
arnobrinkman
1cbc04f4cb
Fix check constraint bug caused by my previously commit
2004-01-10 18:04:40 +00:00
arnobrinkman
0fb9764dcc
Change ambiguity check for proper handling of sub-queries and non-aliassed (derived)tables.
...
This doesn't work anymore :
"select table.field from table t"
But now this does work correctly :
"select * from table t join table on (table.ID = t.ID)"
2004-01-09 02:23:46 +00:00
robocop
06a4df3708
A requiem for JOURNAL and WAL.
...
Instructions in the list.
2004-01-06 10:33:18 +00:00
dimitr
518923a0e6
Fixed old FB2 bug.
2004-01-04 14:12:40 +00:00
robocop
16cbc204df
Cleanup
2003-12-31 05:36:12 +00:00
robocop
ad0b5c4de3
General cleanup
2003-12-22 10:00:59 +00:00
skidder
1b43575fa9
Rollback crazy change made by Dimitry Sibiryakov and approved by Claudio Valderrama. We should not break compatibility with half of the world without apparent reasons.
2003-12-21 23:54:24 +00:00
skidder
56c979e1e9
Update parse.cpp
2003-12-21 01:35:05 +00:00
skidder
92576263ee
Fix minor flaw in explicit nulls placement design. This change doesn't cause any
...
user-visible changes in engine behavior. Fix is critical for future development
in this area and needs to be backported in B1_5_Release.
2003-12-21 00:07:03 +00:00
dimitr
995417f11a
Minor cleanup
2003-12-14 18:26:25 +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
dimitr
1c1d834871
Fixed problem with parameters used as UDF arguments with type of CSTRING.
2003-12-06 18:13:57 +00:00
robocop
84062732d8
More cleanup
2003-12-03 08:19:24 +00:00
eku
0bdee4e5ee
Fixed syntax error.
2003-12-02 08:35:05 +00:00
brodsom
7844cc7cd4
Fix scope change that breaks posix build
2003-12-02 02:47:34 +00:00
robocop
9fafc348bf
const correctness
...
vars in scope
minimal interface cleanup
small bug fixes
2003-11-28 06:48:34 +00:00
arnobrinkman
e944221d79
bugfix: SF841696 calculated output descriptor for COALESCE/CASE should give charsets other then NONE/ASCII precedence
2003-11-22 22:43:24 +00:00
robocop
a94dbd85fd
const correctness and other minor items
2003-11-18 07:58:35 +00:00
brodsom
04f3b01b9d
-Remove unneeded win32 headers
2003-11-17 23:39:38 +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
eku
71fab4de17
Yacc doesn't like C++ comments in the language section.
2003-11-11 14:47:08 +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
stryqx
7715c0db1b
Undefine PAGE_SIZE to allow successful compile with gcc 3.3.3.
2003-11-10 06:27:45 +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
e9bfb1004f
Removing gdsold.h
2003-11-08 16:20:11 +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
146b6f2001
Extern function cleaning
2003-11-07 13:25:53 +00:00
brodsom
79e5ff02dd
Extern "C" cleaning
2003-11-06 17:57:01 +00:00
robocop
35396625f5
const correctness
...
function signatures
variables in local scope
BOOLEAN -> bool
TEXT[32] as SqlIdentifier for DYN
Stop random garbage in firebird.msg's bytes 8 to 11
some cleanup
2003-11-05 09:02:33 +00:00
brodsom
ff070a16a8
Replacing assert with fb_assert
2003-11-03 23:59:24 +00:00
skidder
7b99b8a57b
Basic INTL cleanup.
...
- Rework (mostly undo) John's changes
- Some function type safety
- Make INTL OO layer very thin (this should slightly improve performance)
2003-11-03 17:14:45 +00:00
dimitr
08a9f40b52
1. Reworked cursor management
...
2. Added explicit cursor statements
3. Slightly reworked LEAVE code
4. Lots of cleanup
2003-11-02 12:28:30 +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
brodsom
76c7382b78
Macro cleaning
2003-10-20 22:41:11 +00:00
robocop
2230c2fbbb
Style; comment unused code
2003-10-20 10:12:49 +00:00
brodsom
ca027789ee
Correct recent Claudio's change to allow posix build again.
2003-10-19 23:03:19 +00:00
brodsom
47bc4c93d9
Correct bad debug report (found by Claudio)
2003-10-17 13:01:18 +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
dimitr
adccd3d8ce
Fixed server crash with explicit plans used in subqueries, when outer aggregation is performed.
2003-10-13 12:56:44 +00:00
robocop
f2a738de1b
const correctness, vars in scope, etc.
2003-10-05 06:37:26 +00:00
robocop
e0b551838f
style
2003-10-05 06:33:56 +00:00
robocop
bc93cc3c0b
const correctness, vars in scope, etc.
2003-10-05 06:27:16 +00:00
robocop
c8e2ddfe40
style
2003-10-05 06:23:04 +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
brodsom
c0485b7c67
Macro cleaning
2003-10-01 18:11:23 +00:00
aafemt
b5994fabad
sym -> dsql_sym + some 'struct' cleanup
2003-10-01 10:58:07 +00:00
brodsom
24a616d5d6
Patch to Nickolay changes to make MinGW build again
2003-10-01 03:37:32 +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
robocop
c931a674c2
Cleanup.
...
Hopefully harmless
It should fix the issue introduced with constness in gds__interprete for current applications.
2003-09-29 12:43:14 +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
dimitr
2f8c56b330
Fixed types convertion.
2003-09-28 12:05:10 +00:00
dimitr
f1cde7d613
Slightly reworked my labels implementation.
2003-09-28 11:12:03 +00:00
brodsom
4c9f386bd2
Macro cleaning
2003-09-28 00:36:28 +00:00
dimitr
6d6dae9295
Changed license of some files by Mark and myself.
2003-09-26 14:13:15 +00:00
brodsom
0c6527d260
-Macro cleaning
2003-09-26 11:02:12 +00:00
brodsom
bbbe47da2b
-Macro cleaning
2003-09-26 10:50:59 +00:00
robocop
484c6ec372
Cleanup, const correctness, variables in scope, etc.
...
Having done my best to merge everyone else's changes, I hope the tree can be build with whatever other tools != MSVC6.
2003-09-25 11:49:12 +00:00
brodsom
9d5721473a
Removing SHLIB_DEFS
2003-09-22 17:56:35 +00:00
skidder
ad60c5b70b
Make RIGHT JOIN symmetrical to LEFT JOIN at DSQL layer.
...
This fixes a couple issues when engine rejected correct RIGHT JOINs
or accepted incorrect and failed subsequentally during query execution
2003-09-21 17:49:16 +00:00
skidder
79dea9d5a3
- Fix incorrect assignment of DYN constants for NBACKUP
...
- Fix minor inconsistency in drop_generator DYN constant definition
Noted by Dmitry Emanov
2003-09-21 13:33:45 +00:00
brodsom
a2713837d2
Cleaning macros
2003-09-20 23:28:38 +00:00
brodsom
6e9ebc38ce
Cleaning headers
2003-09-16 13:57:39 +00:00
arnobrinkman
71b17588d9
Added ORDER BY support on derived tables. (Suggested by Dmitry Yemanov)
2003-09-15 21:21:40 +00:00
brodsom
30f79b34f8
-Cleaning headers
2003-09-15 16:32:22 +00:00
dimitr
f7aa490111
The final part of my little PLAN enhancement.
2003-09-14 15:37:05 +00:00
brodsom
4a09b27a36
-Fix indents
2003-09-13 12:16:48 +00:00
robocop
f7dc675500
Trivial correction
2003-09-13 10:26:47 +00:00
robocop
2ed1a3e87b
trivial correction
2003-09-12 09:19:21 +00:00
brodsom
b46945d049
BOOLEAN cleaning
2003-09-12 01:41:03 +00:00
dimitr
5ec79f66ef
PLAN enhancements. The DSQL part of this change will follow.
2003-09-10 13:24:49 +00:00
skidder
5761966226
Make Win32 version of engine compile
2003-09-08 21:44:44 +00:00
skidder
29812f3af7
Update parse.cpp
2003-09-08 21:26:56 +00:00
skidder
77b17de987
NBACKUP-related changes and some clean-up
2003-09-08 20:23:46 +00:00
dimitr
6f66ae704c
Fixed logic after Blas' change of the function return.
2003-09-08 11:29:36 +00:00
brodsom
2c738f6a67
-Change function return to SUCCESS=true, FAILURE=false (suggested by Claudio)
2003-09-05 11:28:23 +00:00
arnobrinkman
74380ab714
Don't forget unnamed derived tables
2003-09-04 21:40:21 +00:00
brodsom
a4416db52a
-Replace BOOLEAN, TRUE and FALSE
2003-09-04 21:26:15 +00:00
brodsom
f51c931f6d
Correction
2003-09-04 15:26:53 +00:00
arnobrinkman
2638aa9fd7
Remove generated comment
2003-09-04 15:05:06 +00:00
arnobrinkman
4a37161c8d
Changed internally derived-table support to better readable/understanding code
2003-09-04 15:02:22 +00:00
brodsom
c4179f6e13
Fix cast warning
2003-09-04 13:45:06 +00:00
arnobrinkman
f691e5d79c
Change types that were used as booleans to the real bool type
2003-09-03 23:52:47 +00:00
arnobrinkman
e5574959ad
Change BOOLEAN to bool type
2003-09-01 23:22:22 +00:00
brodsom
8624a7c209
-Use NULL instead 0 for null pointers
...
-Remove unneeded casts
2003-09-01 07:58:04 +00:00
brodsom
a062a7dcfd
Correction
2003-09-01 07:39:54 +00:00
dimitr
eb6acae759
Cleanup variable names.
2003-08-30 16:49:15 +00:00
brodsom
03e528a79b
-Remove GDS_VAL and GDS_REF
2003-08-30 01:54:25 +00:00
aafemt
6fbb6c5ad7
No more isc_array_gen_sdl() in public API
2003-08-29 10:55:07 +00:00
arnobrinkman
cdec93e466
missing line/column-numbers
2003-08-28 20:29:07 +00:00
brodsom
602c201989
-Remove NULL_PTR
...
-Remove unneeded NULL casts
-Remove (void) function return cast
2003-08-28 13:07:29 +00:00
aafemt
66c47aeb65
move debug and error handling stuffs away from dsql.h
2003-08-28 10:58:35 +00:00
arnobrinkman
6027b94811
Change code-style and prepare for more info on error-message
2003-08-27 23:00:43 +00:00
dimitr
323bae2372
1. MAP renamed to DSQL_MAP
...
2. Minor cleanup
3. Fixed BREAK/LEAVE code to support FOR EXECUTE STATEMENT loops
4. Added support for loop labels and LEAVE <label> statement
5. Fixed SUBSTRING to support value expressions as its arguments
2003-08-26 07:13:33 +00:00
arnobrinkman
11b4fcf5b7
1) Make COALESCE/CASE output descriptor more SQL-standard.
...
Exception is that we allow mixing datatypes with (var)char (except blob), because all datatypes are convertable to character-type and because this functionallity was available from 1st day COALESCE is introduced inside Firebird.
2) Fix bug with expressions without fields inside aggregate-functions.
Example :
SELECT
(SELECT Count(1) FROM RDB$DATABASE)
FROM
RDB$RELATIONS
2003-08-25 23:35:30 +00:00
arnobrinkman
79c10074c0
Already fix COALESCE/CASE output-descriptor behaviour inside HEAD branch to conform with SQL-standard.
...
FB1.5_RELEASE will follow when error-message is added
2003-08-24 22:15:23 +00:00
arnobrinkman
9cf1f386fa
fix bad behaviour with auto-union-cast
2003-08-24 15:22:11 +00:00
arnobrinkman
006070b331
added comment and nested derived table fix
2003-08-24 02:56:53 +00:00
arnobrinkman
c61cbdc5ca
fix some derived tables problems
2003-08-24 02:36:46 +00:00
aafemt
8798a33d84
ENUM removal
2003-08-22 10:56:55 +00:00
arnobrinkman
9b4b90d606
bugfix nested derived tables
2003-08-19 23:56:28 +00:00
arnobrinkman
05d343bda8
Oops missed something
2003-08-19 23:47:07 +00:00
arnobrinkman
506b858567
Added PLAN support for derived tables
2003-08-19 23:34:23 +00:00
robocop
e15aef8e87
Damn loop
2003-08-19 10:25:21 +00:00
arnobrinkman
f5002b3f5b
Code clean-up and re-apply comments as suggested by Claudio V.
2003-08-18 21:37:47 +00:00
arnobrinkman
5f844f7428
added comment
2003-08-16 13:14:35 +00:00
arnobrinkman
95ab087c1f
latest versions
2003-08-16 00:37:40 +00:00
arnobrinkman
9e82b6d20b
Fixed ambiguous columnname problems with derived tables.
...
Added support for unnamed derived tables.
2003-08-16 00:36:54 +00:00