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

878 Commits

Author SHA1 Message Date
dimitr
dead116ac8 Significant changes in the DDL source parsing (begin_*, end_* rules):
1) store WITH CHECK OPTION instead of WITH CHECK (views)
2) store DEFAULT <value> instead of <value> (procedure parameters)
3) attempt to fix the bug in end_trigger causing longer string to be stored (try e.g. DEFAULT CURRENT_TIME NOT NULL)
4) major cleanup of begin_trigger and indentation, simplified some parser rules
Now awaiting for the Claudio's attack :-)
2005-09-27 11:17:54 +00:00
dimitr
3e575cc3ba Let's recognize an attempt to alter a not existing table earlier than in DYN.
In particular, this prevents a server crash introduced by some recent DDL checks.
2005-09-19 14:48:26 +00:00
dimitr
51a8e6dd62 Fixed dialect 1 regression caused by my recent changes. 2005-09-16 10:50:57 +00:00
dimitr
e285db7acf Fixed the issue with zero-initialized status vector during prepare. 2005-09-14 19:06:28 +00:00
asfernandes
13910d5c73 Fix issue of SQLVAR.sqllen from non-system MBCS fields, thanks to Roman 2005-09-14 18:09:40 +00:00
dimitr
39bceddf43 Another attempt to fix the issue with uncommitted DDL. 2005-09-14 11:42:21 +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
e2ca3104e5 Cleanup. 2005-09-09 10:15:02 +00:00
dimitr
d946030bed Small correction. 2005-09-09 09:07:08 +00:00
dimitr
9309486dba Clear the DSQL metadata cache after ALTER EXTERNAL FUNCTION statement. 2005-09-09 06:40:44 +00:00
hvlad
c420a96abe Removed unused member 2005-09-04 21:39:22 +00:00
hvlad
6e63680183 Correction 2005-09-04 21:33:57 +00:00
hvlad
a3c369866a Add error handlers 2005-09-04 21:32:16 +00:00
hvlad
3f03b1d619 Small code reorganisation:
1. move two identical 'copy_status' functions from array.epp and blob.epp into utld.cpp
2. allow ERRD_punt use local instance of status-vector
2005-09-04 21:31:25 +00:00
robocop
36f8683511 Get rid of my old hack to solve a problem between John/Mark's FIRST/SKIP parameters type and dialect detection. The dialect is in the request. 2005-09-03 08:03:39 +00:00
robocop
057f098a28 - Misc.
- Detect a limit case with params and containing or starting.
2005-09-03 07:47:32 +00:00
dimitr
898cb02240 1) Made output parameter naming a common procedure instead of select-list private code.
2) Allowed value expressions in the RETURNING clause.
2005-09-02 05:30:16 +00:00
asfernandes
f93bf8d46a Fixed problem of implict NOT NULL (in PRIMARY KEY constraint) being generated with the same constraint name of the PK.
Thanks to my brother Adilson for the test case.
2005-08-29 18:41:21 +00:00
dimitr
faa8162a2b Fixed SEGV reported by Konstantin. 2005-08-25 12:37:26 +00:00
dimitr
0cd5e57eaa Added optional seconds precision to CURRENT_TIME and CURRENT_TIMESTAMP
as agreed with Ann and others times ago.
2005-08-24 09:42:14 +00:00
dimitr
2f4312b6c6 Added optional seconds precision to CURRENT_TIME and CURRENT_TIMESTAMP
as agreed with Ann and others times ago.
2005-08-24 09:22:40 +00:00
dimitr
8df5a70299 Rolled back my commit as a performance looser.
More precise savepoints handling is being investigated.
2005-08-24 06:21:47 +00:00
dimitr
a30e17bce3 Fixed wrong keyword version. 2005-08-22 13:39:30 +00:00
dimitr
9a489515b9 Fixed PSQL exception handling which never worked consistently. 2005-08-22 10:12:13 +00:00
asfernandes
0b1eb55d62 Fixed SF field-test #1249187 - 2.0a3: String literals dest. for large CHAR fields truncated 2005-08-21 15:52:30 +00:00
arnobrinkman
b900f56435 Allow outer reference in derived table to higher scope-levels 2005-08-16 21:19:17 +00:00
robocop
22742ccdd7 Tweak DYN to solve several issues:
- Allow to set and drop defaults for table's fields (as it has been possible with domains).
- Stop people from setting a default value for array types.
- Close checking holes that allowed people to change from scalar types to array types and vice/versa.
- Improve some error messages.
2005-08-14 05:48:20 +00:00
dimitr
6494351243 Fixed a number of issues for Dialect 1 and Dialect 3 (string arithmetics) + some cleanup.
The issues are:
1) '1.5' / '0.5' doesn't work in Dialect 1
2) avg ('1.5') doesn't work in Dialect 1
3) 5 * '1.5' produces INT result instead of DOUBLE PRECISION in Dialect 1
4) sum ('1.5') produces NUMERIC(15, 2) result instead of DOUBLE PRECISION in Dialect 1
5) - '1.5' doesn't work in Dialect 1
6) '1.5' * '0.5' and '1.5' / '0.5' are not forbidden in Dialect 3
2005-08-06 05:29:31 +00:00
robocop
773b8035c1 Totally misc. 2005-08-04 04:03:01 +00:00
arnobrinkman
d41f73b112 Sigh, if i change something then i must do it right 2005-08-02 08:36:51 +00:00
arnobrinkman
ec541b28d5 Fix unreleased contexts problem with derived tables, found by Vlad. 2005-08-01 19:05:57 +00:00
arnobrinkman
a6deb7b96e Fix mistake, noticed by Claudio 2005-07-31 14:13:30 +00:00
robocop
a32d2f48b6 Totally misc. 2005-07-31 03:34:04 +00:00
arnobrinkman
8a6f8e4a1c Fix nullable flag for descriptor generated by MAKE_desc_from_list() 2005-07-28 13:35:08 +00:00
arnobrinkman
8b39342fdf Fix "WITH CHECK OPTION" bug introduced with tighter alias handling.
In fact the tighter alias handling was showing a hidden "bug".
2005-07-27 18:57:15 +00:00
dimitr
0b3d60bbde Fixed the GEN_ID(<name>, NULL) issue (reported by Claudio). 2005-07-27 07:36:03 +00:00
dimitr
50add99198 Fixed the NEXT VALUE FOR bug for dialect 3. Thanks to Claudio. 2005-07-27 05:36:43 +00:00
dimitr
3e0fe831cd Fixed the arrays bug introduced by myself. 2005-07-26 12:16:29 +00:00
arnobrinkman
e2a664a6a2 Fix and simplify PLAN alias lookup 2005-07-26 11:54:37 +00:00
arnobrinkman
beb6fb213d Fix and simplify PLAN alias lookup 2005-07-26 11:48:10 +00:00
arnobrinkman
22ac7c9cdc Fix derived table issues with NEW/OLD contexts (Triggers/check-constraints)
Also adjust IN predicate behaviour to derived table.
PLAN parsing for derived tables will be fixed later.
2005-07-25 14:43:28 +00:00
asfernandes
d524eec86f Fixed SF #1242379 - Collation changes VARCHAR's length 2005-07-22 02:08:14 +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
dimitr
e26108da29 1) Fixed threading issues in DSQL (they always existed, but were hidden until recently).
2) Cached all METD requests.
2005-07-17 07:00:55 +00:00
dimitr
75a8789a09 Temporarily rolled back my fix. 2005-07-16 06:46:07 +00:00
arnobrinkman
21c839b45a Send annoying unemployed code out of the door 2005-07-13 20:07:13 +00:00
dimitr
3a6419378d Fixed SF #1012152. 2005-06-24 15:06:54 +00:00
asfernandes
2cae7d39b7 Simplification 2005-06-17 01:33:14 +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
a3e76836e3 Misc. 2005-06-16 05:02:37 +00:00
asfernandes
890494ac7c 1) Fixed SF #1016040 Missing external libraries causes engine exception
2) Use better error messages
2005-06-14 03:16:54 +00:00
dimitr
40b5c1d6bb RETURNING implementation. 2005-06-13 12:45:42 +00:00
asfernandes
4efb74fc51 Removed some compiler messages 2005-06-13 02:12:14 +00:00
asfernandes
a44e8ffbd0 Fix TRIM(NULL FROM <something>) to return NULL 2005-06-12 21:20:12 +00:00
hvlad
f07656ec54 Fixed SF bug #1211325 (BLOBs in external tables) 2005-06-11 11:36:59 +00:00
robocop
b7e36b865d Backport Tom Cole's fix for FP numbers as strings. 2005-06-11 03:14:22 +00:00
robocop
c674f50758 CREATE DATABASE can tolerate single line comments (AFAIK, client-side issue). 2005-06-11 00:22:47 +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
3d93cdf69c Fix possible problems with larger columns sizes noted by Claudio 2005-06-10 02:03:08 +00:00
dimitr
00e0976294 Fixed bug with lost charset/collation in local variables,
reported by Eugene Kilin.
2005-06-08 13:42:59 +00:00
asfernandes
3647497a08 Misc. 2005-06-06 20:18:12 +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
dimitr
d9294d7938 Added new error message. 2005-06-06 13:37:31 +00:00
dimitr
15151d5bba Fixed charset/collation issues for view columns. 2005-06-06 11:06:01 +00:00
robocop
b8d1f00f94 - Corrections and changes to Adriano's commit, subject to his inspection.
- Solved an endless loop with trim and zero-length trim characters, etc.
- Some places are signaled with FB_COMPILER_MESSAGE for prompt attention.
2005-06-06 08:30:03 +00:00
arnobrinkman
8affc50d24 Fix unneeded evaluation of last item by COALESCE function, noted by Dmitry 2005-06-03 21:14:35 +00:00
asfernandes
59213efe7e Merge INTL branch into HEAD 2005-05-27 22:45:31 +00:00
arnobrinkman
1e539b16c1 fixed missed return, thanks to Claudio 2005-05-23 23:16:49 +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
95d8b36260 Misc. 2005-05-19 23:41:17 +00:00
robocop
1fc49649a0 Getting rid of commented code that belonged to the dead shared cache and/or WAL plus making COLLATION non-reserved word and having trivial special handling for COMMENT so it's recognized as token only if it's the first token. 2005-05-19 07:41:27 +00:00
robocop
934c5d8cf3 Getting rid of commented code that belonged to the dead shared cache and/or WAL plus identifying the keywords that have special handling as non-keyword, so isql and others future clients of KEYWORD_stringIsAToken() won't treat these as if they need double quotes. 2005-05-19 07:38:29 +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
arnobrinkman
0132e696f2 Fix mapping problem when derived table was used as sub-query.
This was only possible since pass1_any() behaviour has been changed.
Normally a derived table cannot access fields outside the derived table context.
2005-05-18 18:55:57 +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
alexpeshkoff
b8929eecbf front-ported my fix from 1.5.2 - fixed AV in ALTER TABLE 2005-05-12 18:23:01 +00:00
hvlad
33e495c7ad Fixed unregistered bug - AV in incorrect written EXECUTE BLOCK statement. For example :
EXECUTE BLOCK AS
BEGIN
  INSERT INTO DUMMY (ID) VALUES(?);
END
Thanks to Arno
2005-05-12 17:46:31 +00:00
dimitr
7c8fc55056 Fix for the bug reported by Bill Oliver. 2005-05-06 18:09:49 +00:00
arnobrinkman
0f07677e46 Fix errors generated by IN-predicate due pass1_any() change 2005-05-04 19:38:47 +00:00
arnobrinkman
6a73b87b62 Fix bug SF #1191006 Using where params in SUM return incorrect results
parameters weren't checked on equality in node_match()
2005-05-04 09:53:37 +00:00
dimitr
e288d2ac49 Fixed bug found by Arno. 2005-05-04 08:44:35 +00:00
dimitr
27340d7daf 1) Fixed buggy behaviour of IN vs FIRST/SKIP.
2) Allowed UNIONs in ANY/ALL/IN subqueries.
Subject of Arno's review.
2005-05-02 12:41:02 +00:00
dimitr
65588a5003 Optimized NOT conditions when possible. 2005-05-02 09:47:27 +00:00
arnobrinkman
0a5c47ca6b Remove non-sense comment 2005-04-26 13:32:15 +00:00
arnobrinkman
9f929f2527 Fix SF bug #1016969
-804 Data type unknown with searched CASE and parameters in results
2005-04-26 11:46:07 +00:00
arnobrinkman
4f7123010c Fix bug with VALUE keyword in check constraint and
bug Found by Tom Cole with VALUE keyword where VALUE represents a column
2005-04-24 18:26:12 +00:00
arnobrinkman
0aea42263e Second fix for items-list where NULLs default descriptor shouldn't be used to determine the final output descriptor.
Only UNIONs were affected by this bug.
2005-04-20 13:06:42 +00:00
arnobrinkman
cfc703f766 Fix bug with alias hiding datatype by datatype-list coercion 2005-04-19 09:55:53 +00:00
robocop
d0115322ac Misc. 2005-04-18 03:24:34 +00:00
dimitr
cce77ac325 Fixed issue reported by Adriano. 2005-04-16 18:21:09 +00:00
dimitr
aeaa8b2290 Removed the feature that was never used for the last years.
An intention was to disallow batch fetches from procedures,
but this code never worked due to recursion in PASS1_rse().
Accidentally, I've fixed the reason in FB2 and now users
observe noticable performance degradation. To keep the
performance, let's do batch fetches again. Those who are
not sure what their procedures do between suspends may
use a FOR UPDATE clause anyway.
2005-03-31 15:27:12 +00:00
robocop
da0b4784b6 Misc. 2005-03-31 06:21:55 +00:00
robocop
21af4a943a 1.- Disambiguate rules between READ BLOB/INSERT BLOB and metadata definitions involving blob fields.
2.- Fix the source of DSQL crash with READ BLOB.
3.- Fix (1) has the side effect of stopping invalid DDL like
create table t(b blob 0);
2005-03-31 06:20:29 +00:00
dimitr
543d0fa51b Solved issues with EXEC PROC and input message (related to my previous changes). 2005-03-30 17:55:29 +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
robocop
318cd7ae44 Fix DY's copy/paste bug. 2005-03-27 04:51:21 +00:00
dimitr
d25fcdc0c4 Implemented RECREATE EXCEPTION and CREATE OR ALTER EXCEPTION. 2005-03-26 16:11:52 +00:00
dimitr
7307d7f490 More parameter checks in the PSQL case. 2005-03-26 14:05:44 +00:00
dimitr
b8e5350158 Parser simplification and minor cleanup. 2005-03-26 13:32:29 +00:00
dimitr
fa8f456325 Fixed server crashes related to some plan buffer overflows. 2005-03-23 07:14:12 +00:00
arnobrinkman
eac753f709 Fix typos found by Tom Cole 2005-03-13 12:17:32 +00:00
robocop
2f752f36aa Totally misc. 2005-03-04 00:01:42 +00:00
alexpeshkoff
f4cd5a154f Changed name to security2.fdb 2005-02-24 12:24:38 +00:00
dimitr
e3a9d86662 Simplify code paths a bit. 2005-02-21 13:18:49 +00:00
dimitr
37f3266bb0 Simplify code paths a bit. 2005-02-21 12:48:39 +00:00
robocop
5490b60181 Do not make a new branch if the code is the same but with a different variable. 2005-02-14 05:54:45 +00:00
robocop
541e3054ac Put common code into functions. 2005-02-14 05:51:25 +00:00
asfernandes
42efc07a3a NULL literals should have DSC_nullable in dsc_flags 2005-02-13 00:37:18 +00:00
arnobrinkman
a15c361120 1) Make ordinal working on select list which contain an asterisk
Examples:
SELECT * FROM RDB$RELATIONS ORDER BY 9
SELECT R.* FROM RDB$RELATIONS R ORDER BY 9

2) Add ORDER BY <alias> and GROUP BY <alias>

Examples:
SELECT RDB$RELATION_ID AS ID
FROM RDB$RELATIONS ORDER BY ID

SELECT
  RDB$RELATION_NAME AS ID,
  Count(*)
FROM
  RDB$RELATION_FIELDS
GROUP BY
  ID
2005-02-10 21:14:52 +00:00
asfernandes
97e2c81aff Fixed SF #1116809 - Incorrect data type conversion 2005-02-06 13:15:22 +00:00
dimitr
d7e75a86b1 Fixed some metadata issues with views. 2005-02-05 12:48:33 +00:00
robocop
d39363ad73 Regenerate parse.cpp after Nickolay's changes. 2005-01-30 02:14:26 +00:00
robocop
816f54be2e Misc. 2005-01-30 02:13:23 +00:00
hvlad
9b809e2193 Allow EXECUTE BLOCK to work with blob parameters. 2005-01-26 14:52:38 +00:00
arnobrinkman
c8785f03cd fix derived table issue with derived column list and columnname from sub-select 2005-01-24 23:02:08 +00:00
dimitr
3f3eb11ba4 Return relation alias via API. SQLDA stays untouched for the time being. 2005-01-23 15:53:36 +00:00
arnobrinkman
8147470e7f Fix alias usage in explicit PLAN 2005-01-21 14:09:02 +00:00
robocop
e567a0791c Regenerate parse.cpp after Dmitry's changes. 2005-01-21 08:54:07 +00:00
dimitr
84e104e7b7 More compatibility modes for the parser. 2005-01-20 12:33:54 +00:00
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