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

1796 Commits

Author SHA1 Message Date
robocop
e9be920cc0 Shut up some compiler warnings (some warnings should be enabled again in autoconfig_msvc.h IMHO because hiding our possible mistakes won't help us). 2008-12-30 10:52:52 +00:00
asfernandes
ccb27f8537 Misc 2008-12-21 20:06:02 +00:00
robocop
ae03e3b515 Style. 2008-12-21 03:39:32 +00:00
asfernandes
582d837778 Remove trailing spaces from epp files - I had forgot them 2008-12-20 23:50:22 +00:00
robocop
1834a97b69 My dear trailing spaces. :-) 2008-12-20 08:18:32 +00:00
robocop
9c9e4e9b0b There's no need to check whether a pointer is null before applying delete or delete[]. 2008-12-20 08:16:55 +00:00
asfernandes
b262751dae Fixed CORE-2230 - Implement domain check of input parameters of execute block 2008-12-10 14:42:09 +00:00
asfernandes
41b4b3ab8d Fixed CORE-2227 - Problem with column names with Accents and triggers.
Thanks to Alex for makefile fixes!
2008-12-08 23:45:23 +00:00
asfernandes
8fbf0e8e8c Remove trailing spaces (.cpp files) 2008-12-05 01:20:14 +00:00
asfernandes
ff5f8745fb Remove trailing spaces (.h files) 2008-12-05 00:56:15 +00:00
robocop
9f52942ab0 Style. 2008-12-02 07:09:49 +00:00
asfernandes
a6b30e0b4f Misc 2008-11-22 14:26:59 +00:00
robocop
09f142746b Misc. 2008-11-19 04:25:56 +00:00
asfernandes
3942ad9570 Misc 2008-11-19 01:04:36 +00:00
robocop
3f5556edf9 Misc. 2008-11-16 08:36:48 +00:00
alexpeshkoff
d3f22d3fc5 Implemented feature CORE-2113: Remove all privileges of a user or role. Readme will be ready soon. 2008-11-14 10:00:45 +00:00
dimitr
8dd79adc6d Fixed CORE-2182: It's impossible to drop an existing UDF which name overlaps with a new built-in function name. 2008-11-11 17:37:57 +00:00
asfernandes
c51af68ff9 Misc 2008-11-09 22:42:11 +00:00
asfernandes
26e6444764 Misc 2008-11-08 18:05:21 +00:00
asfernandes
dcfdeca45c Fixed CORE-2176 - Unexpected (wrong) results with COALESCE and GROUP BY 2008-11-08 17:59:06 +00:00
asfernandes
db82e7cd6b Misc 2008-11-06 00:23:21 +00:00
alexpeshkoff
d8ea120ded AIX port - use FB_ prefix for alignment constants 2008-11-05 11:26:23 +00:00
asfernandes
52b1014ba6 Remove warnings by gcc 4.3.2 2008-11-05 01:08:20 +00:00
asfernandes
2a757281c6 Misc 2008-10-31 00:02:49 +00:00
hvlad
285879c331 Fixed bug CORE-2154 : "request synchronization error" when calling isc_dsql_sql_info with isc_info_sql_records parameter after last record fetched with "execute procedure"
Real reason is than engine alllows to fetch from statement with no cursor open. Currently it is forbidden.
2008-10-28 10:50:24 +00:00
alexpeshkoff
f6c2181187 make status vector have same structure for most uses of SQLERR -607 2008-10-27 15:10:45 +00:00
asfernandes
ad716e38d9 Misc 2008-10-20 23:46:46 +00:00
dimitr
7729fe8622 1) Let's avoid a deep recursion for the IN (<list>) predicate. At least on the parser side.
2) Fixed the IN elements limit to be 1500 (as documented) instead of 1499.
2008-10-20 10:43:50 +00:00
robocop
bbc988bd9f Correction. 2008-10-16 08:51:51 +00:00
asfernandes
262380af7b Misc 2008-10-16 02:31:49 +00:00
alexpeshkoff
0c021b27b5 Avoid code duplication as suggested by Claudio 2008-10-14 14:07:10 +00:00
dimitr
e6dc2d8f39 Fixed CORE-2115: Query plan is missing for the long query.
Some cleanup and misc code refactoring.
2008-10-13 07:23:19 +00:00
asfernandes
774635c3a9 Fixed another case for CORE-1246 - Incorrect column values with outer joins and derived tables:
select t2.n
  from rdb$database t1
  left join (
    select 11 n
      from (
        select 0 a
          from rdb$database
      ) x1
  ) t2
    on 1 = 0
;

was returning 11.
2008-10-04 02:48:35 +00:00
asfernandes
364fb47606 Misc 2008-10-03 00:45:13 +00:00
robocop
0c85fac2d4 CORE-1799: improve the almost useless "expression evaluation not supported" error message.
Did the DSQL part for now.
2008-09-27 09:51:53 +00:00
asfernandes
8513170298 Removed false assertion with statement:
select 1 + ? from rdb$database
2008-09-15 15:34:14 +00:00
asfernandes
db4e1bda25 Misc 2008-09-15 15:25:18 +00:00
asfernandes
7a5b0121d8 Misc 2008-09-14 23:17:58 +00:00
asfernandes
51a3f06427 Fixed CORE-2066 - Conversion of SQL_TEXT / SQL_VARCHAR to SQL_TIMESTAMP / SQL_TYPE_TIME / SQL_TYPE_DATE 2008-09-11 15:33:44 +00:00
robocop
276bc71915 Misc. 2008-09-11 06:49:27 +00:00
alexpeshkoff
121af76de7 Made XSQLDA parameter const in isc_dsql_fetch and a family of isc_dsql_exec functions as suggested by Dmitry Kovalenko.
Minor related cleanup in utld.
2008-09-10 12:31:54 +00:00
asfernandes
22c65f0153 Misc 2008-09-10 02:21:13 +00:00
alexpeshkoff
e80d9223a0 Fixed CORE-2071: isc_dsql_prepare crashes with statement_text=NULL 2008-09-09 11:27:10 +00:00
alexpeshkoff
e392297213 sligtly better places to check for missing SQL operator 2008-09-09 11:11:25 +00:00
asfernandes
cd8476bea3 Do not change the logic of things that was been working - thanks to Claudio 2008-09-09 11:01:29 +00:00
alexpeshkoff
79f97a1534 Fixed CORE-1506: Server crash with isc_dsql_execute_immediate and zero length string 2008-09-09 09:26:29 +00:00
asfernandes
50ab76f9a7 Fixed:
CORE-2067 - GROUP by and RDB$DB_KEY problems
CORE-2068 - Comparision with IN and subquery with RDB$DB_KEY returns wrong result
CORE-2069 - Incorrect VIEW expansion when RDB$DB_KEY is used in view body
2008-09-07 21:50:00 +00:00
asfernandes
384beddc49 Do not mix flags of union and rse. Problem recently introduced:
select n from t1
union all
select n from t2;
Error: multiple rows in singleton select
2008-09-07 20:25:18 +00:00
asfernandes
b550749a47 Fixed CORE-1246 - Incorrect column values with outer joins and derived tables 2008-09-07 19:44:48 +00:00
alexpeshkoff
35ed43e0da Some asserts 2008-09-05 11:46:26 +00:00
robocop
a6d4e3de82 Misc. 2008-09-03 12:18:59 +00:00
asfernandes
139e4f8ca9 Misc 2008-09-03 02:26:45 +00:00
dimitr
d64f97e260 Fixed CORE-2061: ALTER VIEW WITH CHECK OPTION crashes the engine. 2008-09-02 07:27:15 +00:00
asfernandes
9150e6f4f2 This should fix regressions related to fixes of:
CORE-501 - Optimization problem with COALESCE
CORE-1343 - Bug with a simple case and a subquery
CORE-2041 - update or insert with gen_id() with wrong generator value

And should fix this one (snapshot build bug):
CORE-2051 - don't work subquery in COALESCE
2008-09-01 13:18:02 +00:00
asfernandes
cc5b689eda Misc 2008-08-29 02:18:50 +00:00
alexpeshkoff
13a15d4bfe 1. Final fix for CORE-1964 - finished vararg cleanup in jrd.
2. Generic cleanup of error reporting functions all around engine.
2008-08-27 12:20:47 +00:00
alexpeshkoff
b3e51d59e2 fixed release gcc build 2008-08-27 11:06:11 +00:00
alexpeshkoff
b61c1b2e59 Fixed diagnostics broken by my previous commit - thanks to Claudio 2008-08-27 07:33:09 +00:00
robocop
69aeb8cb71 Misc. 2008-08-26 11:04:39 +00:00
robocop
92f2d1dc1b Misc. 2008-08-26 10:28:58 +00:00
dimitr
1739c548b1 Fixed CORE-903: Update Field update / result Updated. 2008-08-25 07:58:45 +00:00
robocop
3ffc6889d4 Correction. 2008-08-23 11:08:21 +00:00
asfernandes
ed0c45c1b9 Temporary fix for the boot build 2008-08-22 02:13:02 +00:00
asfernandes
e54682efa0 Fixed CORE-1343 - Bug with a simple case and a subquery 2008-08-21 01:58:53 +00:00
asfernandes
b910161f82 Fixed CORE-501 - Optimization problem with COALESCE 2008-08-20 01:54:45 +00:00
alexpeshkoff
e33702d587 misc CORE-1964 2008-08-18 07:12:25 +00:00
alexpeshkoff
c188e3dc47 fixed compile error 2008-08-18 06:44:36 +00:00
asfernandes
736659c1a1 Misc 2008-08-16 15:42:38 +00:00
asfernandes
fdfe98f2a8 Fixed CORE-2044 - Incorrect result with UPDATE OR INSERT ... RETURNING OLD and non-nullable columns 2008-08-16 00:59:31 +00:00
asfernandes
5d4084d30c Fixed CORE-2041 - update or insert with gen_id() with wrong generator value 2008-08-15 16:32:42 +00:00
alexpeshkoff
1785fb6ee3 fixing CORE-1964: Use of 0 instead of isc_arg_end to terminate list of ERR_post's (and cousines) arguments is invalid
finished cleanup of vararg in error diagnostics in DSQL
2008-08-15 11:21:47 +00:00
asfernandes
fd90a1e25b Improvement CORE-2029 - Increase number of contexts avaiable when using derived tables 2008-08-02 23:47:38 +00:00
robocop
7182bbaa8b Style. 2008-07-16 11:15:00 +00:00
alexpeshkoff
7c8427bc35 Separated CVT functions to common and jrd parts.
This made possible to avoid ugly CVT_move export.

Cleanup of errors handling in CVT functions.
2008-07-10 15:57:33 +00:00
asfernandes
45786da3bc Misc 2008-07-06 16:42:52 +00:00
alexpeshkoff
95335a7356 restored const correctness after tag move 2008-07-04 10:37:26 +00:00
alexpeshkoff
c8ce5f505a fixed Darwin/gcc 4.0 build 2008-07-04 10:35:33 +00:00
alexpeshkoff
fc51563cc1 temporary reverted to be able to fix A1 tag 2008-07-04 10:33:11 +00:00
alexpeshkoff
5ac5869661 CORE-1964 - stop vararg mess when reporting errors. Use special class for it. More (ERR_post cleanup) to come. 2008-07-03 12:02:54 +00:00
robocop
1d7bc9916b Misc. 2008-07-03 07:12:36 +00:00
robocop
1ffc7a2291 Misc. 2008-07-02 09:46:44 +00:00
asfernandes
ce4bf91533 Misc 2008-07-01 01:12:02 +00:00
robocop
720b2655b9 Implement new message for DSQL. 2008-06-28 04:33:29 +00:00
alexpeshkoff
a2e416210b Fixed CORE-1964: Use of 0 instead of isc_arg_end to terminate list of ERR_post's (and cousines) arguments is invalid.
Also cleaned up use of gds__log() in a few places.
2008-06-26 09:47:59 +00:00
asfernandes
cf7af2292d Fixed CORE-1962 - Incorrect extraction of MILLISECONDs 2008-06-25 15:58:03 +00:00
asfernandes
d30d6410ea Misc 2008-06-13 01:42:58 +00:00
robocop
30b5480c66 Move the new EXEC STMT functionality to a separate function. 2008-06-12 09:02:54 +00:00
hvlad
66fd7d5488 Make blr_exec_stmt extensible in the future.
Sorry, recompile of stored objects using new EXECUTE STATEMENT is necessary. Hope the last time ;)
2008-06-10 22:43:30 +00:00
alexpeshkoff
5f0278b14e Added GRANTED BY clause to GRANT and REVOKE commands.
Fixed CORE-1869: Roles granting/revoking logic differs between 2.0 and 2.1.
2008-06-10 10:55:48 +00:00
robocop
017d04dbfc Misc. 2008-06-10 10:11:39 +00:00
dimitr
c639285420 Fixed the Linux build. 2008-06-10 03:31:19 +00:00
alexpeshkoff
bbd35943db fixed gcc build 2008-06-09 07:49:56 +00:00
asfernandes
26a79e3c6e Misc 2008-06-09 01:34:33 +00:00
hvlad
5d9c430674 Implemented improvement CORE-1928 : Allow EXECUTE STATEMENT to inherit access privileges of caller stored procedure or trigger.
Allow to specify EXECUTE STATEMENToptional clauses in any (not fixed) order.
Use INTERNAL_PROVIDER for access to the current database by another user too.
2008-06-08 20:42:27 +00:00
asfernandes
552f58dd48 Misc 2008-06-06 02:25:35 +00:00
robocop
b8ea332022 Misc. 2008-06-05 11:02:42 +00:00
robocop
d9c191f831 Fix the logic in two unused functions (in case they aren't dropped). 2008-06-05 10:58:17 +00:00
robocop
a1906d634f Style. 2008-06-03 06:19:50 +00:00
robocop
ab2987a3aa Style.
Remove useless parentheses.
2008-06-03 06:19:21 +00:00
robocop
07c087094d Mostly remove useless parentheses. 2008-06-03 06:14:59 +00:00
asfernandes
dbaf050e86 Set the tdbb->request to NULL when committing an autonomous transaction, as a normal COMMIT does. This fixes assertion related to system blobs created by DDL commands in EXECUTE STATEMENT. Test case:
execute block
as
begin
  in autonomous transaction do
     execute statement 'create table x (n integer)';
end!
2008-06-01 19:14:41 +00:00
asfernandes
0d84abc6d4 Fixed CORE-1919 - Memory corruptions in EXECUTE STATEMENT may crash the server 2008-06-01 01:19:54 +00:00
alexpeshkoff
b9be96d37f Applied Damyan's patch eliminating some warnings in gcc 4.3 2008-05-28 13:22:26 +00:00
alexpeshkoff
093901c134 fixed gcc 3 build 2008-05-28 13:11:36 +00:00
asfernandes
0d979e5b92 Misc 2008-05-28 02:11:00 +00:00
asfernandes
679ac834a5 Small inconsistency noticed by Claudio 2008-05-25 15:41:54 +00:00
robocop
2cc3233658 Misc. 2008-05-25 12:17:58 +00:00
robocop
88859fdc51 Make operations a bit faster by enabling the vector to add an array of values in a single pass (the same idea as insert's overloaded version). 2008-05-25 12:16:20 +00:00
robocop
0d3d93ac90 Complete Adriano's change. 2008-05-25 11:48:01 +00:00
robocop
4acad057dc Give explicit names to vars that save state for later restoration. 2008-05-25 11:44:11 +00:00
asfernandes
84603f1169 Misc 2008-05-25 01:39:16 +00:00
asfernandes
d4bf9ab246 Split dsql_req into dsql_req and CompiledStatement. This should be my last refactoring to 2.5:
- dsql_req becomes a running request;
- CompiledStatement is derived from dsql_req. The compilation state previously in dsql_req comes to here;
- Rename many "request" parameters to "statement" where type is changed from dsql_req to CompiledStatement.
This changes makes easy the path to support compiled statement cache.
2008-05-24 03:19:52 +00:00
asfernandes
71bd20b209 Fixed CORE-1910 - Not valid fields in MERGE's insert clause are allowed 2008-05-23 01:37:19 +00:00
asfernandes
bdf999ddef Slight more correct usage of scope level in MERGE 2008-05-23 00:38:06 +00:00
asfernandes
36e7ddd38c Corrections 2008-05-22 23:19:09 +00:00
asfernandes
9fc4a1881f Misc 2008-05-22 21:45:22 +00:00
robocop
5cd11867ec Get rid of (ALLOC/FREE)_LIB_MEMORY macro as requested by Dmitry. 2008-05-22 09:38:21 +00:00
asfernandes
ffe554acc1 Misc 2008-05-21 16:04:10 +00:00
asfernandes
d84c1c1d2f Misc 2008-05-21 16:02:25 +00:00
asfernandes
725a100324 Correction - thanks to Claudio 2008-05-21 15:22:22 +00:00
robocop
83f77468a0 Misc. 2008-05-21 13:00:37 +00:00
robocop
66aab208b0 Simplification. 2008-05-21 12:52:29 +00:00
robocop
ff1d4c61cf Misc. 2008-05-21 12:41:58 +00:00
asfernandes
900c4ff7d3 Misc 2008-05-20 00:58:14 +00:00
asfernandes
d52dc96278 1) Move the new Node classes to appropriate files
2) Creation of StmtNode
3) Conversion of IN AUTONOMOUS TRANSACTION to InAutonomousTransactionNode (inherited from StmtNode) - it makes this feature almost self-contained

Please do a boot build or at least run blr_table.
2008-05-19 13:47:48 +00:00
asfernandes
e469bd562a Cleanup on the "proc_flag" logic: store it on the request and changes when necessary. 2008-05-17 16:51:07 +00:00
asfernandes
7072385162 Typo 2008-05-15 16:02:33 +00:00
asfernandes
6c7170463a Follow the standard and do not allow binary strings with odd number of characters 2008-05-15 15:27:43 +00:00
hvlad
0d27b88752 Commented out never reduced rule. 2008-05-15 11:43:56 +00:00
alexpeshkoff
27a97e2a6a 1. Modified syntax of ALTER ROLE command according to Dmitry's request.
2. Avoid any use of predefined NT group name "Domain Admins".
3. Fixed DYN code generation for USER operations.

                     ***** WARNING *****
After this commit all previous backups of 2.5 databases with turned on
admins mapping become unrestorable. ODS is not changed.
2008-05-14 11:24:45 +00:00
asfernandes
7d34ead84e 1) Allow to reference others fields in the expression of ALTER...COMPUTED
2) Documentation
2008-05-11 20:05:12 +00:00
robocop
e44a99f339 Style and minor cleanup. 2008-05-10 03:44:57 +00:00
asfernandes
90b3b08ca0 Fixed the problematic assert 2008-05-06 15:20:18 +00:00
asfernandes
ac1cfe49a8 Remove a lot of warnings compiling parse.cpp with GCC 4.2.3 2008-05-01 16:12:16 +00:00
hvlad
02f2cef2db Update DSQL_pretty to print nod_src_info contents even more correctly :) Noted by Adriano. Also make DSQL_pretty to not loop endlessly on nod_return. 2008-05-01 07:26:53 +00:00
hvlad
a1b08862f0 Corrected fix for bug CORE-1875. Noted by Adriano. 2008-05-01 07:22:11 +00:00
hvlad
62b5c645e5 Fixed bug CORE-1875 : Error on script with current_date 2008-04-30 20:04:18 +00:00
hvlad
7667d6e88f Update DSQL_pretty to print nod_src_info contents correctly 2008-04-30 20:03:40 +00:00
dimitr
6fbb76c115 Fixed the crash reported privately by Bill Oliver. 2008-04-30 17:45:46 +00:00
hvlad
6ee4242552 Fixed bug CORE-1841 : If some VIEW used derived tables and long table names\aliases, It is possible to overflow RDB$VIEW_RELATIONS.RDB$CONTEXT_NAME.
Attention : ODS changed !
2008-04-29 16:39:17 +00:00
robocop
83d3ddd6cb Replace custom code by helper class ThreadStatusGuard. 2008-04-26 10:29:52 +00:00
asfernandes
d75951e8e5 Misc 2008-04-18 01:37:44 +00:00
hvlad
48f8d0ff80 Correct my mistake 2008-04-17 10:47:31 +00:00
asfernandes
28d5b99afc Misc 2008-04-16 16:02:01 +00:00
asfernandes
a7a7e18220 Fixed the bug reported by Claudio - crash when getting plan of DDL requests 2008-04-16 15:28:16 +00:00
hvlad
23dad7416f Generate old blr codes (blr_exec_sql or blr_exec_into) if given EXEC STMT statement is compatible with old syntax. Per Adriano request. 2008-04-16 13:08:51 +00:00
robocop
4580126101 Do not use flags for values that are exclusive (can't be combined). 2008-04-16 10:38:08 +00:00
robocop
6f31045e33 Misc. 2008-04-16 09:25:36 +00:00
hvlad
a8a0a39248 Fixed CORE-1837 : Procedure text is stored truncated in system tables if any variable have default value 2008-04-15 19:45:19 +00:00
asfernandes
e4db82781f Corrections 2008-04-15 15:31:21 +00:00
asfernandes
882e71fa81 Put nod_auto_trans in DSQL_pretty - noted by Claudio 2008-04-15 15:19:20 +00:00
asfernandes
77e97a47c0 Feature requests CORE-1737 and CORE-1803:
1) ALTER CHARACTER SET <charset> SET DEFAULT COLLATION <collation>
2) CREATE DATABASE ... [ DEFAULT CHARACTER SET <charset> [ COLLATION <collation> ] ]
2008-04-15 02:18:38 +00:00
asfernandes
79f8d2ceef Misc 2008-04-15 00:57:19 +00:00
asfernandes
f66f7b28f5 1) Fix another possible invalid memory access in parse.y and the memcpy problem reported by valgrind
2) Misc
2008-04-14 15:22:52 +00:00
robocop
caa5f285c4 Minor cleanup. 2008-04-14 14:26:44 +00:00
asfernandes
e97cccd79d Hope this fix a problem detected by valgrind 2008-04-14 13:35:15 +00:00
robocop
73093a8889 Mark dead code. 2008-04-14 13:01:54 +00:00
robocop
d54a9f7ef6 - Let BIN_AND, BIN_OR and BIN_XOR take two params as minimum.
- Implement BIN_NOT.
2008-04-14 11:09:16 +00:00
robocop
876cb8c11c Better fix for the "unnamed field" bug. Thanks to Adriano for discovering a case that shouldn't be matched. 2008-04-14 07:05:49 +00:00
asfernandes
0ca6d7c20f Use the collation defined in RDB$DEFAULT_COLLATE_NAME in strings constants 2008-04-12 22:26:24 +00:00
hvlad
f0899a7256 Make INTO clause of new EXECUTE STATEMENT consistent with other statements - move it at last position. By agreement in fb-devel. 2008-04-12 21:12:29 +00:00
asfernandes
80baf91394 Small cleanup 2008-04-12 16:07:45 +00:00
robocop
4de9c4050b Use array notation. 2008-04-12 11:54:42 +00:00
robocop
64ea67ddf6 The "unnamed field" bug strikes again. :-( 2008-04-11 03:45:42 +00:00
asfernandes
6e59d736df 1) Fix Linux build
2) Misc
2008-04-11 01:38:50 +00:00
asfernandes
0e8febd6e3 Misc 2008-04-10 02:35:30 +00:00
hvlad
fe3f8c184b New EXECUTE STATEMENT with support of external data source implementation 2008-04-09 20:18:47 +00:00
asfernandes
9037d1908a Hope this fix one "problem" detected by Valgrind 2008-04-09 20:01:41 +00:00
robocop
cd9ede5768 Delete obsolete comment, fix indentation and style. 2008-04-09 13:47:15 +00:00
robocop
7c4114a7d6 It's harder to fix the assertion than to verify the code. 2008-04-08 06:26:34 +00:00
asfernandes
017e3a9cd0 Misc 2008-04-06 15:02:35 +00:00
asfernandes
29fbfbb8ff Misc 2008-04-06 14:45:51 +00:00
robocop
752e3f1d43 Totally misc. 2008-04-06 08:07:00 +00:00
dimitr
4c9045523f Removed the wrong assert. Adriano, please make sure the rest of the logic is ready for a zero field_string.
Test case: CREATE VIEW vt (id) AS SELECT id, 5 FROM t;
2008-04-04 18:26:38 +00:00
dimitr
1dcf8baa39 Put an extra check. Does anyone think that the condition should be "length > 0" instead? 2008-04-04 16:59:01 +00:00
dimitr
29229a10a6 Simplify the optional default value parsing and processing. This also fixes CORE-1512. 2008-04-04 16:53:29 +00:00
asfernandes
14c3e3f49d Misc 2008-04-04 10:48:47 +00:00
dimitr
580544fbd7 More changes targeted to a better error diagnostics. 2008-04-04 10:01:06 +00:00
asfernandes
bc3a7f965d Comment the new assertions as it's being false when using parameters in isql (UPDATE UserGroup SET ACL = ?) - to be reviewed by Claudio 2008-04-04 00:51:50 +00:00
robocop
ee46acd6bc Misc. 2008-04-03 13:17:32 +00:00
dimitr
08c5783ab2 Misc. 2008-04-03 11:02:11 +00:00
hvlad
2b7f14dc69 Fixed CORE-1817 : The RelaxedAliasChecking parameter has no effect concerning RDB$DB_KEY 2008-04-02 14:27:17 +00:00
dimitr
e0feb6e228 Misc. 2008-04-01 12:56:30 +00:00
dimitr
30f7cce178 Fixed CORE-1811. A solution is to move the validation code from GEN to PASS1 in order to catch bad things earlier. This differs from the SAS solution, but hopefully it's more generic. 2008-04-01 06:11:29 +00:00
robocop
49ad645051 A half-backed solution to the const conflict problem. I hope the cure is at least slightly better than the disease. 2008-03-30 09:44:02 +00:00
robocop
3de79a20c9 Fixing the damn interface. 2008-03-30 09:42:24 +00:00
dimitr
e18a16e3cb Removed OldParameterOrdering. 2008-03-25 16:42:10 +00:00
robocop
7806b09a62 Literal strings should be treated as const data. 2008-03-25 12:05:17 +00:00
asfernandes
21a13650eb More problematic cases of CORE-1798 - thanks to Dmitry 2008-03-21 19:05:24 +00:00
asfernandes
3aca6f92b1 Misc 2008-03-21 02:42:24 +00:00
dimitr
d637ed09e2 Major cleanup of the old-style blk and allocator-based blk_type. 2008-03-19 16:29:17 +00:00
dimitr
13f5cc92e1 Major cleanup of the old-style blk and allocator-based blk_type. 2008-03-19 16:09:00 +00:00
robocop
3e724a9286 Misc. 2008-03-18 13:02:21 +00:00
dimitr
2c722e5854 Fixed the build. 2008-03-17 17:17:33 +00:00
hvlad
0170deaff3 Fixed bug CORE-1793 : AV at prepare of query with unused parametrized CTE 2008-03-17 10:27:01 +00:00
asfernandes
a6f5327cc8 Fixed EXECUTE STATEMENT returning BLOBs 2008-03-14 15:29:23 +00:00
asfernandes
c7ec88bee4 1) Created classes PreparedStatement and ResultSet
2) Changed EXECUTE STATEMENT to use these classes
3) Fixed CORE-1784 - Error with EXECUTE PROCEDURE inside EXECUTE STATEMENT
2008-03-13 16:37:20 +00:00
robocop
55e17e46d7 - Made some constructor explicit and discovered that for adding one byte to a string, a temporary string was being created on the fly. Unacceptable in loops.
- Disabled constructor from hell for now. I wasn't the only one confused about the nature of the only argument: only looking at the signature one realizes it's a byte's value, not the initial length.
2008-03-13 10:38:39 +00:00
dimitr
ff090e6a7b Cleanup. 2008-03-12 16:42:51 +00:00
robocop
2da08d1afc Cleanup. 2008-03-10 09:32:43 +00:00
robocop
dadefcb479 Binary things are UCHAR. Let's try to fix them from the innermost layer to the outermost layer until we can fix the public interfaces. 2008-03-10 09:31:40 +00:00
robocop
cc46a7b12e Cleanup. 2008-03-10 09:23:27 +00:00
robocop
2912e6a5be Cleanup and misc. 2008-03-10 08:44:07 +00:00
asfernandes
74d8711856 Misc 2008-03-08 21:20:26 +00:00
asfernandes
0b6ecafe1b 1) Remove REPLAY_OSRI_API_CALLS_SUBSYSTEM code
2) Remove internal y-valve function INTERNAL_COMPILE_REQUEST
3) Go direct to engine internals from DSQL, without need to exit/enter the attachment lock and check exceptions in status vector
2008-03-07 15:23:21 +00:00
robocop
62c9dd45c6 Let's better use UCHAR for binary streams. 2008-03-05 08:40:55 +00:00
robocop
c6d8b0f46f Style. 2008-03-05 08:39:26 +00:00
asfernandes
ebcbf8f998 Correction 2008-03-05 02:35:42 +00:00
dimitr
5e2dc9b624 Fixed the status vector thrown for the NULL transaction handle. 2008-03-04 10:58:20 +00:00
robocop
8888ecb544 Let's better use UCHAR for binary streams. 2008-03-04 06:03:34 +00:00
robocop
3e9476e464 Misc. 2008-03-04 06:02:32 +00:00
asfernandes
e88fd596d9 Let DSQL cache lock logic in SS too - per Dmitry request 2008-03-03 15:40:56 +00:00
dimitr
c4fbdeddd7 Cleanup. 2008-03-03 14:38:32 +00:00
dimitr
b04f38e171 Fixed the NULL transaction handle crash reported by Dmitry Kovalenko in fb-devel. 2008-03-03 06:31:00 +00:00
asfernandes
88b6f39f82 1) Restore logic of not handled exceptions
2) Initialize some status vectors
2008-03-03 00:47:04 +00:00
asfernandes
7a2dedaa39 Go direct to engine internals from DSQL, without need to exit/enter the attachment lock - more to follow 2008-03-02 21:16:16 +00:00
robocop
c5ed71f77b Style. 2008-03-02 08:44:10 +00:00
robocop
0a0a8bedb0 Simplification. 2008-03-02 08:42:53 +00:00
robocop
b0d1494539 Cleanup and warning. 2008-03-02 08:40:09 +00:00
asfernandes
2e8bd421dc Cleanup: do not replicate attachment charset info in DSQL 2008-03-01 19:32:16 +00:00
asfernandes
35688cd5d9 Cleanup: remove y-valve functions DSQL_CACHE and INTL_FUNCTION 2008-03-01 19:14:46 +00:00
asfernandes
f49017d2ff Misc 2008-03-01 15:08:11 +00:00
dimitr
a0730bcec5 Restored the old logic which uses the user transaction handle to prepare the statement.
This allows to keep the good DSQL's early validations for intermixed DDL/DML operations.
2008-03-01 11:41:51 +00:00
dimitr
331a464574 Misc. 2008-02-29 08:45:02 +00:00
alexpeshkoff
00c63c1f8d 1. Make signals handling in yValve MT safe.
2. Introduce new private API calls, fb__shutdown() and fb__shutdown_callback().
3. Introduce fb_smp_server - binary to run superclassic on posix.
4. Various cleanups.
2008-02-28 18:42:30 +00:00
dimitr
45dcb94dab 1) Fixed the crash reported by Alex.
2) Cleanup.
2008-02-28 18:16:42 +00:00
dimitr
99caa91b85 DSQL integration into the engine. 2008-02-28 13:48:16 +00:00
robocop
ace4231a87 memcpy instead of custom loop. 2008-02-28 09:28:48 +00:00
asfernandes
4b58bb06f1 Feature CORE-1760 - Support hex numeric and string literals 2008-02-27 16:00:31 +00:00
dimitr
c49845e8c4 Better lock scope. 2008-02-27 12:03:05 +00:00
asfernandes
e4303be920 Fix GCC build 2008-02-27 00:09:50 +00:00
dimitr
6f630d4a2f Make this code thread-safe and independent from the core DSQL. 2008-02-26 07:12:43 +00:00
asfernandes
312a391d78 Misc 2008-02-26 02:23:28 +00:00
dimitr
c1f75dcdf8 Ported SQLSTATE from Vulcan.
Part II: handling of isc_arg_sql_state.
2008-02-24 15:02:04 +00:00
asfernandes
1d70a37bcf Misc 2008-02-22 02:51:37 +00:00
robocop
4cbc8d6a2f Misc. 2008-02-21 13:11:32 +00:00
dimitr
1cae560ede Cleanup. 2008-02-20 15:46:13 +00:00
dimitr
0c7959cfd0 Make the mutex protection available for [super-]classic builds. 2008-02-20 15:43:31 +00:00
dimitr
c7db4d6a64 Get rid of DsqlMemoryPool. 2008-02-20 15:24:21 +00:00
asfernandes
1ce834c8dc Misc 2008-02-14 01:31:15 +00:00
robocop
10d74a7642 Style. 2008-02-13 12:57:04 +00:00
robocop
78ceba6473 Style and deleting extra, unnecessary scope block. 2008-02-13 12:56:32 +00:00
dimitr
f5dce94470 Front-ported the DSQL_unprepare feature from Vulcan. 2008-02-12 17:21:05 +00:00
hvlad
0c51514806 Frontport fix for bug CORE-1724 : Common table expressions cannot be used in computed columns and quantified predicates (IN / ANY / ALL) 2008-02-07 14:10:25 +00:00
asfernandes
01745502a9 Fixed problem when altering non existent database trigger 2008-02-05 14:46:04 +00:00
asfernandes
f19d9ec09b Improvement CORE-1453 - Allow usage of functions in LIST delimiter parameter 2008-02-05 14:33:42 +00:00
alexpeshkoff
da233e16bf Fixed error in TCS's DSQL_DOMAIN_01 and PROC_LEVEL0_TESTS_2 - long domain name was silently truncated instead of throwing an error 2008-02-05 11:48:59 +00:00
alexpeshkoff
ee6c433597 Mutexes cleanup:
1. Make all firebird mutexes recursive.
2. Enable exceptions to be thrown by mutexes and process them in code where needed.
3. Catch and ignore exceptions in various MutexGuard dtors.
2008-02-05 08:21:18 +00:00
asfernandes
6dd361603f Misc 2008-02-04 17:01:36 +00:00
dimitr
b4db26c7d7 Cleanup and refactoring. 2008-02-04 12:45:00 +00:00
asfernandes
607ef7d9fa Encapsulate the parser and make it thread safe 2008-02-03 19:16:12 +00:00
asfernandes
17136a1bc2 Protect DSQL_failures 2008-02-03 14:27:13 +00:00
robocop
fbdc3dbb2b Style, constness and macro cleanup. 2008-02-03 11:20:48 +00:00
asfernandes
b39ac40c9d Misc 2008-02-03 02:32:39 +00:00
dimitr
36ef0f6fc9 Misc. 2008-02-02 23:48:48 +00:00
alexpeshkoff
8bdc06af57 Do not hold mutex more then needed 2008-02-02 17:42:32 +00:00
dimitr
bacf986c78 Fix for an issue spotted by Claudio in fb-devel. 2008-02-02 12:21:48 +00:00
asfernandes
ed51d0728b DSQL sync. changes 2008-02-01 20:18:11 +00:00
asfernandes
f82ea85c3c Misc 2008-01-29 02:28:06 +00:00
dimitr
132176a475 Major synchronization changes. Description of the commit will be posted to fb-devel. 2008-01-26 12:52:51 +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
asfernandes
05b90fa684 Eliminate some warnings 2008-01-16 14:37:26 +00:00
dimitr
74e8bba437 The merge is being fixed. 2008-01-16 11:51:42 +00:00
dimitr
eac5ac337b The merge continued. 2008-01-16 06:52:43 +00:00
alexpeshkoff
0a1e5de41c Applied patch from Dmitry Kovalenko - some constness in DSQL 2007-12-11 15:17:35 +00:00
asfernandes
ad13b126d1 Misc 2007-11-30 00:35:44 +00:00
hvlad
c2800e66e8 Implement CORE-1625 : Implement new setting to relax strict SQL standard's alias checking rules 2007-11-29 17:53:38 +00:00
asfernandes
d8ab6f4b23 Fixed CORE-1624 - MERGE not correctly worked with parameters in MATCHING clause 2007-11-29 15:15:23 +00:00
asfernandes
4e426d0739 Commit forgotten change 2007-11-26 09:57:19 +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
asfernandes
54b36766c0 Misc 2007-11-17 00:38:16 +00:00
asfernandes
5d22a267ea Fixed warning - thanks to Dmitry 2007-11-16 13:47:14 +00:00
paulbeach
7602a29b94 HPUX Port 2007-11-12 14:26:44 +00:00
asfernandes
39c1e6cc82 Misc 2007-10-28 16:00:53 +00:00
asfernandes
b2669fac42 Misc 2007-10-27 18:09:32 +00:00
robocop
88a642b4e7 Misc. 2007-10-27 07:03:25 +00:00
asfernandes
c7440554de Fixed CORE-1528 - Functions DATEDIFF, ABS(integer const) does not work in dialect 1 2007-10-25 14:31:17 +00:00
robocop
874d8bb906 Fix CORE-1508.
I applied a simple fix because I think that expressions like
-gen_id() don't deserve to carry the alias "gen_id", etc.
But it makes sense for constants and NULL.
2007-10-24 06:23:53 +00:00
asfernandes
0531244d4b Misc 2007-10-21 14:49:37 +00:00
alexpeshkoff
407cf7e1d8 Changes suggested by Claudio and Adriano. Further cleanup 2007-10-19 11:51:58 +00:00
asfernandes
30f5bffea4 Misc 2007-10-19 01:25:11 +00:00
asfernandes
3073cc8a13 Fixed the problem (with POWER) described in a comment of CORE-1514 2007-10-17 15:27:13 +00:00
alexpeshkoff
e4271ba6fa Fixed CORE-1501: Wrong access to SLONG data in dsql_nod 2007-10-17 14:35:31 +00:00
asfernandes
944108171e Use const in SysFunction as suggested by Dmitry Kovalenko 2007-10-12 20:25:04 +00:00
asfernandes
cc2b3ccb9a 1) Fixed CORE-1510 - Bad XSQLVAR [NULL flags] for (2*COALESCE(NULL,NULL)) - thanks to Dmitry Kovalenko
2) Fixed few problems with NULLs and new system functions
2007-10-12 00:52:47 +00:00
robocop
caedf6f181 Fixing comditional compilation. 2007-10-06 10:30:53 +00:00
asfernandes
93642be94a Fixed CORE-1492 - BLOB isn't compatible with [VAR]CHAR in COALESCE 2007-10-04 15:33:34 +00:00
asfernandes
bad4ef9667 Fixed CORE-1497 - New builtin function DATEADD() implements wrong choice of keywords for expanded syntax 2007-10-04 15:23:22 +00:00
asfernandes
d8dde42d07 Fixed CORE-1490 - New builtin function DATEDIFF() implements wrong choice of keywords for expanded syntax 2007-10-02 15:37:38 +00:00
asfernandes
d51c478a2c More complete fix for CORE-1451 2007-09-27 16:04:51 +00:00
asfernandes
63de95f1d9 Fixed CORE-1451 - Using RDB$DB_KEY in where section while selecting from a procedure crashes the server 2007-09-27 15:52:47 +00:00
hvlad
fb0ae3e0be Correct my mistake - new built-in UDFs must be extracted with quotes by isql 2007-08-29 09:49:52 +00:00
hvlad
f706becf22 Lets isql not quote new non-reserved tokens 2007-08-29 09:05:17 +00:00
dimitr
4284e1ee34 Resolved CORE-1386. 2007-08-27 10:50:00 +00:00
dimitr
4b15669f26 Misc. 2007-08-27 10:19:41 +00:00
robocop
0904112078 Misc: document code that doesn't handle quoted names as expected. It may be bug or strange feature for cursor names. 2007-08-26 09:14:39 +00:00
robocop
fa1538a1ae Minor changes in MetaName usage. 2007-08-26 09:05:29 +00:00
asfernandes
0b76787f19 Fixed CORE-1417 - "Invalid BLOB ID" in IBX insert operation 2007-08-22 02:18:56 +00:00
hvlad
f13b21de65 Fix for CORE-908 : Garbage in plan output of complex statement 2007-08-09 11:05:43 +00:00
asfernandes
6331db3ee4 Correction 2007-08-02 00:51:15 +00:00
asfernandes
b5a23c12d1 Improvements:
1) CORE-1387 - Add MILLISECONDS handling to EXTRACT, DATEADD and DATEDIFF functions
2) CORE-663 - EXTRACT(WEEK FROM DATE)
2007-07-31 01:22:59 +00:00
hvlad
322a31eeda Implement RECREATE GLOBAL TEMPORARY TABLE 2007-07-29 08:15:22 +00:00
asfernandes
64f80d1914 Fixed CORE-1379 - Invalid parameter type when using it in CHAR_LENGTH function 2007-07-25 15:46:08 +00:00
asfernandes
8c202cdd61 Fixed CORE-1378 - Domain names and charset issues 2007-07-24 16:28:08 +00:00
robocop
cb661b410b Totally misc. 2007-07-22 09:05:05 +00:00
hvlad
671e59e993 Fixed bug CORE-1373 : Incorrect result of recursive CTE query when recursive member's SELECT list contains expression using self-referenced fields 2007-07-21 21:28:56 +00:00
alexpeshkoff
21de02480f Fixed CORE-1371: Execute block fails within execute statement 2007-07-20 09:35:52 +00:00
robocop
5c152e5cfe Misc. 2007-07-08 08:43:30 +00:00
asfernandes
379ebc9ab6 Misc 2007-07-01 02:40:15 +00:00
hvlad
77a5e7498c Improve implementation of nod_src_info to avoid generation of additional blr_begin\blr_end pair 2007-06-29 10:22:50 +00:00
asfernandes
410b2809a1 Fixed CORE-1332 - Put the connection charset in sqlscale of blobs when appropriate 2007-06-28 15:27:28 +00:00
asfernandes
564c2887a2 Second part of fix for CORE-1313, fixed the issue with RDB$DB_KEY and derived tables 2007-06-15 00:41:12 +00:00
asfernandes
ea48ea8b3f Fixed CORE-1313 - RDB$DB_KEY not supported in merge command 2007-06-14 02:15:36 +00:00
robocop
0c819f0520 Misc and VC6 compilation workaround. 2007-06-12 08:29:36 +00:00
asfernandes
f8c2d590a0 Rollback fix for CORE-1245 and CORE-1246 and defer to better times, as each change causes regressions 2007-06-09 19:31:10 +00:00
asfernandes
f4be0d2421 Fixed CORE-1315 - Data type unknown, for most functions ported from Yaffil 2007-06-09 19:18:21 +00:00
robocop
d191a665d3 Misc. 2007-06-09 09:04:59 +00:00
hvlad
6d7c5c7a5d Quick fix for CORE-1315 : Data type unknown. To be reviewed by Adriano 2007-06-08 13:24:28 +00:00
asfernandes
595a185dd3 Rework fix for CORE-1245 to fix:
CORE-1246 - Incorrect column values with outer joins and derived tables,
CORE-1306 - Indices not used for views
2007-06-08 02:20:00 +00:00
alexpeshkoff
ea8ba3370d Cleaned up mutexes - removed MUTX_T and related macros 2007-06-06 12:37:24 +00:00
asfernandes
b63bbb7c59 Fix for:
CORE-1286 - Bug with COMPUTED BY fields
CORE-1292 - Can't create table using long username and UTF8 as attachment charset
2007-06-02 19:13:29 +00:00
alexpeshkoff
86fa05c192 Misc 2007-05-28 12:46:15 +00:00
asfernandes
3431784b92 Misc 2007-05-27 00:37:39 +00:00
asfernandes
e705b335f8 Fix non-ASCII object names in:
1) aliases in PLANs
2) EXECUTE PROCEDURE
3) SELECTs inside procedures/triggers
2007-05-26 22:08:13 +00:00
asfernandes
c67afcb4ee Improvement CORE-1277 - Automatic transliteration of text blobs 2007-05-22 02:14:20 +00:00
asfernandes
3d246aff00 Rollback fix for CORE-1246 - Incorrect column values with outer joins and derived tables, that broke recursive-CTE and uses scarse contexts 2007-05-18 01:17:27 +00:00
robocop
b7446d9c64 Misc. 2007-05-16 06:53:47 +00:00
asfernandes
1a427efe19 Changed UPDATE OR INSERT to check existence of records with IS NOT DISTINCT 2007-05-13 14:06:41 +00:00
asfernandes
bf895341ef Fixed CORE-1256 - Table columns hide destination variables of RETURNING INTO, and others problems recent introduced 2007-05-13 01:37:54 +00:00
asfernandes
03e856b6f7 Use UNION ALL instead of UNION 2007-05-08 15:50:48 +00:00
asfernandes
ef83b131b3 Fixed registration and use of custom character sets 2007-05-08 15:33:22 +00:00
asfernandes
b5fab19683 Misc 2007-05-08 02:31:11 +00:00
asfernandes
d27a1bdd51 Fixed CORE-1246 - Incorrect column values with outer joins and derived tables 2007-05-06 21:30:38 +00:00
asfernandes
20b25e8c61 Fixed ambiguity problem in NATURAL/USING join and derived tables 2007-05-06 16:45:49 +00:00
asfernandes
cfe0ad95cf Fixed CORE-1227 - LIST() function seems not work if used twice or more in a query 2007-05-05 19:28:46 +00:00
asfernandes
c08581d727 Fixed CORE-1244 - Server crash on select * from <recursive CTE> 2007-05-05 03:17:52 +00:00
robocop
52f1b15e0c Misc. 2007-05-02 06:57:18 +00:00
asfernandes
c5cf6ea6b8 Implementation of CORE-1235: NATURAL JOIN and JOIN...USING 2007-04-29 19:04:26 +00:00
alexpeshkoff
a49f8a016f misc 2007-04-28 14:11:30 +00:00
dimitr
fce8a28953 Fixed the issue reported by grostoon in fb-devel. 2007-04-27 15:53:33 +00:00
asfernandes
676b447138 Misc 2007-04-25 02:26:33 +00:00
asfernandes
b06deea4c6 CORE-1226: Allow RETURNING in INSERT...SELECT, UPDATE and DELETE 2007-04-24 15:22:05 +00:00
dimitr
4eed77897a Done CORE-1213. 2007-04-18 17:29:00 +00:00
asfernandes
b6569588d9 Added missing items noted by Claudio 2007-04-15 18:34:04 +00:00
robocop
422d659fcb Misc. 2007-04-15 11:25:23 +00:00
asfernandes
166fc0b865 Misc 2007-04-13 01:37:44 +00:00
asfernandes
133604354b Correction 2007-04-13 01:11:36 +00:00
asfernandes
8c7076b67f Port of Yaffil builtin functions 2007-04-12 15:56:34 +00:00
alexpeshkoff
d63491e3c5 Finished gcc-warnings cleanup 2007-04-11 16:05:40 +00:00
alexpeshkoff
f0d465bf34 Fixed gcc warnings, general (un)signed usage cleanup 2007-04-11 09:28:50 +00:00
alexpeshkoff
6e735f7c53 Misc + gcc warning hunting 2007-04-09 16:15:29 +00:00
robocop
f7817e5baa Totally misc. 2007-03-31 06:50:01 +00:00
dimitr
cfd18fdedd Fixed CORE-1183. 2007-03-28 09:47:55 +00:00
dimitr
27e2ee9be7 Small improvement partially related to CORE-1181. It allows to keep the field name if the cast source is an aggregated column. 2007-03-28 09:27:54 +00:00
dimitr
a32435b66d Fixed CORE-1175. 2007-03-22 12:53:58 +00:00
robocop
194c5ec36a Misc (some spaces mixed with tabs). 2007-03-11 03:13:18 +00:00
asfernandes
6fef59af74 Fixed CORE-1156 - Prepare fails when having a parameter in a DSQL statement before a sub query 2007-03-06 15:54:34 +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
77f0788ba0 Misc. 2007-02-02 10:56:53 +00:00
dimitr
54d1d0a3d3 Let's always initialize node arguments. Thanks to Claudio and David Rushby. 2007-01-29 03:17:21 +00:00
asfernandes
179eb4f012 No need to generated a outer join if WHEN NOT MATCHED is not present in MERGE 2007-01-26 10:16:31 +00:00
asfernandes
cec7eaa8b6 Some changes based on Claudio's comments 2007-01-21 15:35:35 +00:00
alexpeshkoff
d66281291f 1. Make classic server close shutdown normally when killed by signals 2 & 15.
2. Don't leave running instances of fb_inet_server after database shutdown.
3. To make all this possible - reworked Y-Valve in general.
2007-01-20 14:45:45 +00:00
asfernandes
f30ee6b63e Use debug informations in EXECUTE BLOCK 2007-01-20 14:18:18 +00:00
alexpeshkoff
e79660bca6 fixed gcc warning 2007-01-20 14:07:18 +00:00
dimitr
550df186da Front-ported bugfix for CORE-1094. 2007-01-19 12:11:16 +00:00
asfernandes
87aa10c9cd Validate input parameters 2007-01-18 00:26:14 +00:00
asfernandes
aca179f398 Full domain support and NOT NULL in PSQL 2007-01-17 01:19:01 +00:00
asfernandes
7dcab61744 Be standard compliant and allow "AS" between the table name and alias in UPDATE, DELETE and MERGE 2007-01-01 14:13:35 +00:00
asfernandes
7dd5d15b17 Allow table alias on INTO part of MERGE 2006-12-31 20:55:16 +00:00
asfernandes
9c34ba9dfb Misc 2006-12-16 02:21:21 +00:00
dimitr
7c10900395 Fixed CORE-1055. A change in METD_get_relation() seems to not be strongly required, but I keep it in HEAD for testing. 2006-12-15 16:04:40 +00:00
asfernandes
d2e0434a07 Fixed CORE-1012 - IBO problems with FB >= 1.5.3 "Error with joins and auto-generated search query" 2006-12-01 13:49:11 +00:00
asfernandes
57795e5da8 Replace a deleted piece of code - thanks to Claudio 2006-11-29 00:20:01 +00:00
asfernandes
5e818bd4a9 Rename REPLACE to UPDATE OR INSERT 2006-11-26 15:40:10 +00:00
asfernandes
d168869475 Added RDB$NULL_FLAG and RDB$PARAMETER_MECHANISM to RDB$PROCEDURE_PARAMETERS 2006-11-24 00:25:13 +00:00
asfernandes
d0dec479f2 Remove "MESSAGE" keyword 2006-11-20 12:37:15 +00:00
asfernandes
448a2cca48 Remove not correct warnings 2006-11-18 19:32:11 +00:00
robocop
7a46dc7247 Misc. 2006-11-10 08:12:07 +00:00
robocop
7f2b0cd25d Fix typos in recent messages. 2006-11-10 08:10:56 +00:00
asfernandes
570b6cd4b4 1) CORE-645 and CORE-745: Database triggers
2) CORE-711: Make syntax for "CREATE TRIGGER" compliant with SQL2003
2006-11-05 18:30:36 +00:00
hvlad
05b028628f Replace few hardcoded error messages by new error codes 2006-11-05 10:54:46 +00:00
asfernandes
c29c3dccb3 Misc 2006-11-04 03:03:45 +00:00
hvlad
f48f2af25b Few corrections pointed by Claudio 2006-11-03 09:42:42 +00:00
asfernandes
4197a8be70 Fixed a bug when the connection charset is multibyte, appeared after recent changes to CsConvert class. 2006-11-02 22:37:19 +00:00
asfernandes
88a9a84a01 Misc 2006-10-31 14:23:31 +00:00
hvlad
58d381edd7 1. Remove blr_src_info code as it is prevents database downgrade from ODS 11.1
2. Put debug information (mapping between blr offset and source line\column and names of local variables) into new blob field RDB$DEBUG_INFO
This is first step to implement native SQL debugger i believe
2006-10-30 20:58:06 +00:00
dimitr
651607f5a9 Done CORE-863. 2006-10-24 16:45:43 +00:00
robocop
5338e807ae Misc. 2006-10-24 03:48:36 +00:00
robocop
3a05221f9a Fix prototype, thanks to Steve Boyd. 2006-10-24 02:26:36 +00:00
asfernandes
e57edcaa5c Misc 2006-10-20 18:49:23 +00:00
robocop
1b9068c0bf Disable the duplicate field check for sort.
(But keep the check for max items at 255.)
2006-10-19 05:12:28 +00:00
robocop
a270d9c440 Put into the msg file several hardcoded messages marked by Arno to be localized. 2006-10-17 06:03:21 +00:00
asfernandes
6f9092fe35 Misc 2006-10-08 01:57:21 +00:00
asfernandes
7c100231a9 Misc 2006-10-07 17:06:59 +00:00
robocop
2b27f56428 - Give meaningful message when reaching max group items (255), reported by David Schnepper.
- Misc: more mnemonics for nodes' argument positions.
- Experimental: try to detect conflicting sort options on the same field.
2006-10-07 09:40:59 +00:00
robocop
1e7814b7ca Misc: more mnemonic for nodes' argument positions. 2006-10-07 09:30:43 +00:00
robocop
e0badaed04 Solve problem reported by Bill Oliver in fb-devel: we should complain when someone tries to sort on more than 255 items. 2006-09-30 09:10:28 +00:00
asfernandes
f2e24565f0 Allow only one of WHEN MATCHED and WHEN NOT MATCHED in MERGE as the SQL spec 2006-09-17 01:41:24 +00:00
asfernandes
9b5ae679c3 Fixed problem with REPLACE and WHEN blocks 2006-09-16 15:53:51 +00:00
asfernandes
bafe7ee53c Misc 2006-09-15 01:54:50 +00:00
asfernandes
19c8da717c Be more simple as suggested by Claudio 2006-09-14 11:44:11 +00:00
robocop
98ac099832 Skip irrelevant characters at the beginning of trigger's body.
Granted, this has little practical effect because (unlike procedures) trigger bodies include the AS keyword, so garbage between AS and BEGIN is not detected.
2006-09-14 09:43:00 +00:00
robocop
db7c21a752 Misc. 2006-09-14 09:40:58 +00:00
asfernandes
addb91948c Misc 2006-09-14 02:27:59 +00:00
asfernandes
a40b7b8ae5 MERGE statement 2006-09-14 02:05:32 +00:00
asfernandes
f47711602e Fix the problem with CAST and parameters reported by Maycon Ferraça in fb-devel 2006-09-13 12:59:53 +00:00
dimitr
726169caed Fixed CORE-924. 2006-09-12 08:52:03 +00:00
robocop
af8ecc26ca Solve three problems with arrays:
- Don't allow to apply scalar/subscript syntax to fields that aren't array.
- Detect if we get corrupt database containing array with more than 16 dimensions.
- Reject attempt to subscript array with more than 16 dimensions and thus fix the buffer overrun.
2006-09-10 09:05:40 +00:00
dimitr
daa96c44e9 Fixed GCC-based builds. 2006-09-07 11:46:43 +00:00
asfernandes
0cfd1ec791 Misc 2006-09-07 03:43:55 +00:00
asfernandes
4599805c7f Detect ambiguities in implicit MATCHING of views in REPLACE 2006-09-07 03:30:31 +00:00
asfernandes
5c26d54f02 1) Fixed CORE-899 - Problems with explicit cursors in unwanted states
2) Make RDB$DB_KEY in outer joins returns NULL when appropriate
2006-09-07 01:55:49 +00:00
asfernandes
9d4e6c7199 Misc 2006-09-06 02:43:37 +00:00
robocop
c9e311f45d Misc. 2006-09-05 08:17:26 +00:00
asfernandes
55ec30965d REPLACE statement 2006-09-03 01:09:23 +00:00
robocop
ef2f4ef904 Centralize detection of those pesky implicit domains. 2006-09-01 02:42:09 +00:00
robocop
7dab022ddf Prevent users from creating explicit domains that resemble implicit domains because this trick confuses our internal checks:
SQL> create domain rdb$1 int;
Statement failed, SQLCODE = -637
Dynamic SQL Error
-SQL error code = -637
-Implicit domain name RDB$1 not allowed in user created domain
2006-08-31 09:06:15 +00:00
asfernandes
9efd321894 Fixed crash with CREATE VIEW ... AS SELECT and the number of columns of the SELECT is greated than the number of columns of the VIEW 2006-08-30 02:31:41 +00:00
hvlad
705db538f9 Fix for CORE-908: Garbage in plan output of complex statement 2006-08-24 13:28:42 +00:00
asfernandes
8622322ca2 Print the statement text before print the BLR 2006-08-20 19:26:35 +00:00
asfernandes
33422843fc Rollback change not necessary after creation of consts_pub.h 2006-08-20 15:23:00 +00:00
asfernandes
3fb67ef75d Fix problems of RETURNING...INTO of not yet existent constructions (update/delete) 2006-08-19 18:18:31 +00:00
asfernandes
b3cf84ecdf Fixed INSERT...RETURNING...INTO not working 2006-08-19 15:49:28 +00:00
asfernandes
b7af27215e Allow usage of domains in PSQL (with TYPE OF syntax) 2006-08-19 02:52:39 +00:00
aafemt
c662ea7d9e Warnings 2006-08-17 12:08:49 +00:00
asfernandes
ad5a99420d Fixed CORE-896 - SUBSTRING with NULL offset or length don't return NULL 2006-08-16 00:09:27 +00:00
asfernandes
8b31e78863 Misc 2006-08-14 03:34:02 +00:00
robocop
471d052e82 Misc. 2006-08-13 06:46:16 +00:00
robocop
aa0007fcef Misc and better skipping of irrelevant characters in procedure bodies (do not spoil user formatting as requested by Dmitry). 2006-08-13 06:42:28 +00:00
asfernandes
4180a46169 1) Make SUBSTRING of BLOB work
2) More refactoration on describing result of expressions (concatenate and substring)
2006-08-12 03:17:01 +00:00
asfernandes
eb4fb2f491 1) Concatenate of BLOBs
2) Start a refactoration on descriptor manipulations
2006-08-10 02:53:16 +00:00
asfernandes
d3a7d1b21b Put blob charset in XSQLVAR::sqlscale 2006-08-08 11:23:47 +00:00
asfernandes
6c707c12a1 Misc 2006-08-08 02:42:10 +00:00
asfernandes
e538061c38 Implementation of CREATE/DROP COLLATION and ISQL show/extraction of collations 2006-08-07 16:39:21 +00:00
asfernandes
df38d56bb5 Misc 2006-08-06 18:03:22 +00:00
hvlad
7d1693ae39 Corrected logic of removing recursive members from joins in recursive CTE 2006-08-05 21:56:04 +00:00
dimitr
3231829cf8 Ported fix for CORE-855 to HEAD. 2006-08-04 04:32:27 +00:00
asfernandes
9fc1ccbba5 Misc 2006-08-02 01:22:11 +00:00
asfernandes
069e46b050 RECURSIVE is reserved in SQL2003 2006-08-02 00:53:01 +00:00
hvlad
b20aa92714 Common table expressions implementation 2006-08-01 20:37:58 +00:00
asfernandes
273da882bc Misc 2006-07-31 01:46:52 +00:00
robocop
34e37d54ae Fix CORE-200
Handle column names in subqueries.
Put some more names for common operations and special data.
Disable nod_count since it's not generated by our parser.
2006-07-30 05:09:41 +00:00
robocop
bcf2cb8701 1.- COALESCE/CASE and VIA (subqueries) allowed breach in computed field checks (no array and no blob).
2.- Misc: since gbak allows not only to backup metadata only but to restore metadata only (even from a full backup), changed the help message.
2006-07-30 02:59:29 +00:00
robocop
8b74a50186 Fix CORE-871
I did this fix for SF Bug #228135 in February 2002 to FB1. On November 2002, for unknown reasons to me, Ignacio Ortega made the fix a comment, so FB1.5, FB2 and FB2.1 have the bug again. I'm fixing FB2.1 to close the same bug that now appears as CORE-871. We need more regression tests.
2006-07-28 07:45:50 +00:00
dimitr
cffe207614 A few fixes for the monitoring tables. 2006-07-23 12:14:59 +00:00
dimitr
bbaea14abe Misc. 2006-07-23 11:14:43 +00:00
dimitr
9d534e1521 Misc. 2006-07-21 04:15:40 +00:00
dimitr
5519d31f70 More format overflow checks. Also this fixes CORE-842. 2006-07-20 09:57:04 +00:00
asfernandes
ea0435247a Misc 2006-07-18 02:45:35 +00:00
dimitr
c68587fe66 1. Virtual tables
2. ODS 11.1, procedure type and relation type
2006-07-17 17:44:18 +00:00
dimitr
d5b27fdb17 1) Fixed CORE-831.
2) Solved CORE-779 (partially intermixed with another changes that will be committed tomorrow).
2006-07-17 12:44:18 +00:00
asfernandes
07348995d1 Remove these autogenerated files as everybody can build with the integrated btyacc 2006-07-17 02:22:10 +00:00
asfernandes
84c593b954 Correction for problem with CURRENT_USER/ROLE and client charset 2006-07-12 18:44:08 +00:00
asfernandes
a86cf35ad4 Synchronization of DSQL metadata cache objects in classic-server 2006-07-10 03:12:10 +00:00
robocop
f14fd66173 Misc: we typically use the exact node name when doing DSQL's internal debugging output. 2006-07-05 04:37:53 +00:00
hvlad
fe67b9e045 Regenerate parser files 2006-07-04 14:49:05 +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
9aba938bf3 Totally misc. 2006-07-04 05:27:58 +00:00
asfernandes
eb00409120 Mark potential dropped UDFs as dropped as we do with procedures and relations 2006-07-03 01:28:21 +00:00
asfernandes
aa6753fc82 Regenerate 2006-06-26 20:58:46 +00:00
asfernandes
1a0df78e29 Allow the use of COLLATE in parameters (input and output) and variables in PSQL - feature request (CORE-684) COLLATE IN STORED PROCEDURES, OR IN PARAMETERS 2006-06-26 20:58:13 +00:00
robocop
db5f743685 Misc. 2006-06-16 08:13:20 +00:00
robocop
1813e5a124 Fix bug noticed by Dmitry Yemanov: sometimes, special characters are detected and rejected. Other times, anything that follows them is silenty ignored. Unacceptable. We were accesing an array out of bounds.
update customers set city = 1<SC> where 1 = 0;
In this case, SC was a strange character in the range 127..255 (for example, 238) and I had to use Windows' chcp 1251 and isql's set names 1251 to see the problem.
2006-06-07 05:39:46 +00:00
robocop
00b890174a Blob sub_types greater than 1 (text) are for our internal ussage. Negative blob sub_types are for users. Stop users from creating columns with blob sub_types beyond. Probably the same check has to be done in DYN. 2006-06-02 08:44:19 +00:00
robocop
7d4cb328fc Misc. 2006-06-02 08:03:22 +00:00
dimitr
bcf8332407 sed-file is not used anymore. 2006-06-02 03:34:16 +00:00
dimitr
9881681557 Complete one of my previous commits. 2006-06-01 09:48:02 +00:00
dimitr
78c23ca592 Some preparation for RETURNING in UPDATE/DELETE.
To be completed in v3.0.
2006-05-31 18:02:34 +00:00
robocop
60d8b0c277 Follow Alex' fix but in the other DSQL preprocessed file. 2006-05-31 01:19:59 +00:00
alexpeshkoff
9806b4d1b7 fixed regression in diagnostics 2006-05-30 14:45:07 +00:00
robocop
73c9775c2a Tag time differences and timestamp differences as NUMERIC sub_type if they produce exact numeric results. 2006-05-28 07:46:35 +00:00
dimitr
5c049f1eab MT related cleanup. 2006-05-26 06:11:04 +00:00
asfernandes
67e900c4f3 Regenerate parse.cpp 2006-05-26 01:01:04 +00:00
asfernandes
d76fde6496 GLOBAL is reserved word in SQL2003. Move from non_reserved_word to keyword_or_column. 2006-05-26 00:59:17 +00:00
robocop
7040d668fd Misc. 2006-05-25 08:40:23 +00:00
dimitr
bc83c1ef4c Updated parse.cpp 2006-05-25 08:01:33 +00:00
robocop
1571fef42c Introduce the new v2.1 keywords as non-reserved words. Someone with the new build system (btyacc) please regenerate the files. 2006-05-25 07:05:35 +00:00
dimitr
006d5871b0 Restored my previous solution. The final decision is that NOT IN cannot be index-optimized reliably. 2006-05-24 13:19:33 +00:00
asfernandes
24d936cd70 Misc 2006-05-22 01:29:06 +00:00
asfernandes
8e5e51e84d New keywords is using tok_version = 2 2006-05-22 00:14:20 +00:00
hvlad
1296e18049 Regenerate parser and error codes files (after GTT) 2006-05-21 22:14:38 +00:00
hvlad
701f2cbda4 Global temporary tables implementation 2006-05-21 22:07:35 +00:00
asfernandes
292ad66e96 Misc 2006-05-20 01:53:51 +00:00
asfernandes
a3b411a4c1 Misc 2006-05-20 00:59:22 +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
robocop
1cd8eb20da Cope with old compilers. 2006-05-18 06:26:15 +00:00
dimitr
e3646a03d2 Fixed the regression reported by Adriano. 2006-05-17 04:33:44 +00:00
asfernandes
abc1a41b6d Misc 2006-05-17 02:43:12 +00:00
dimitr
4976c7d29d Committed the correct UPDATE behaviour. Disabled so far. 2006-05-16 09:09:18 +00:00
asfernandes
c3348f77b9 Fix problem when trimming not-nullable blobs 2006-05-14 14:32:43 +00:00
asfernandes
40bfb5f0f4 Make TRIM of blob work - returning a blob 2006-05-13 01:27:35 +00:00
robocop
136cab1caf Misc. 2006-05-04 02:57:26 +00:00
asfernandes
f3251b285b Misc 2006-05-02 00:15:29 +00:00
robocop
ea3c37f4cb Remove unused code. 2006-05-02 00:11:46 +00:00
robocop
07f4bed382 I don't want another "interprete", so I rename "defered" to "deferred". 2006-05-02 00:04:12 +00:00
hvlad
f94b8bd641 Merge B1_5_Remote_LazyPort branch into HEAD 2006-05-01 22:23:31 +00:00
dimitr
cebda2b4bf Threading cleanup. More to follow. 2006-05-01 04:43:59 +00:00
alexpeshkoff
469589f573 Use Firebird::Array instead of STL's vector 2006-04-25 17:49:24 +00:00
dimitr
8b45562f81 The DSQL code of the LIST function. Unstable yet. 2006-04-24 17:24:26 +00:00
asfernandes
73d35f65d6 Sync with parse.y 2006-04-23 15:14:35 +00:00
robocop
e54dedb70c Misc. 2006-04-20 01:23:10 +00:00
dimitr
cfefbee57a Removed the lexer hacks from the parser. 2006-04-19 11:32:37 +00:00
asfernandes
3b54c24652 Let LOWER/UPPER (blob) work - returning a blob 2006-04-16 18:45:40 +00:00
robocop
866854d91c Misc. 2006-04-11 07:14:48 +00:00
alexpeshkoff
3e8edbaeb3 fixed AV during massive addition of relations to DSQL hash 2006-04-09 12:47:29 +00:00
asfernandes
a34d59a454 Fix problem which occur when select a field with NONE charset when using another connection charset - second part of problem reported by Michal Kubecek 2006-04-08 03:09:08 +00:00
dimitr
ebed4eb85f More threading related fixes. As a side effect, it disables a primitive client-side caching of a few predefined queries, but it doesn't show any performance difference. 2006-04-07 09:16:55 +00:00
dimitr
f084389653 Fixed the regression caused by my changes re. Dialect 1. 2006-04-05 04:38:03 +00:00
hvlad
5f105d2154 Make input parameters of EXECUTE BLOCK statement nullable 2006-03-29 09:41:48 +00:00
arnobrinkman
ce6eeb13c7 Fix node compare function for derived fields.
Fixes field test-item #1449377.
2006-03-14 10:57:11 +00:00
asfernandes
32f770b760 Fix incorrect malformed string error, reported by Richard Wesley 2006-03-10 00:08:44 +00:00
dimitr
8da75613c4 Fixed yet another bug in explicit cursors.
Unfortunately, BLR compatibility is not provided, so users have to recompile their SPs/triggers.
2006-03-07 17:52:33 +00:00
dimitr
958b1fea85 Fixed bug in RETURNING INTO code. 2006-03-07 14:42:19 +00:00
dimitr
fee85ae5d6 Added a context overflow check to DSQL as well.
Based on a bugreport by Volker Rehn.
2006-03-07 10:20:52 +00:00
dimitr
5ac952b661 There's no need to transform NOT ANY to ALL, as NOT ANY effectively uses indices. 2006-02-15 13:35:53 +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
dimitr
a3b2c23aff CREATE VIEW should be aware that a column alias doesn't necessarily mean an expression. 2006-01-26 11:21:12 +00:00
robocop
770fd53775 Fix SF Bug# 1408079 and also the same problem with unterminated comment blocks /* ... 2006-01-25 08:40:39 +00:00
arnobrinkman
a52a8f5c66 Fix incorrect "Ambiguous field name error" reported by Ivan Prenosil:
SELECT
    (SELECT RDB$FIELD_NAME   FROM RDB$RELATION_FIELDS
      WHERE RDB$FIELD_SOURCE = RDB$FIELDS.RDB$FIELD_NAME)
  FROM RDB$FIELDS
 WHERE RDB$FIELD_NAME NOT IN
    (SELECT RDB$FIELD_SOURCE FROM RDB$RELATION_FIELDS)
2006-01-22 19:14:27 +00:00
asfernandes
e781d29e1e Fixed problem caused by usage of UNICODE_FSS system domains in users views and tables - thanks to Dmitry 2006-01-21 14:55:16 +00:00
hvlad
c65b1fda0a Regenerated parser files after parse.y change
By bison 2.1 now
2006-01-20 13:34:18 +00:00
hvlad
7c1372ee30 Again fix issue with parser and not correctly stored source for
CURRENT_TIME\CURRENT_TIMESTAMP in procedure parameters
default values. Reported by Martijn Tonies
2006-01-20 13:31:26 +00:00
paul_reeves
6baee04435 Forward port OldColumnNaming from Fb 1.5.3 2006-01-17 04:40:31 +00:00
alexpeshkoff
fb6757bbed fixed gcc warning(s) 2006-01-16 16:31:15 +00:00
asfernandes
608a594696 Fixed problem causing collation lost in sqlsubtype when using dynamic charset - reported by Ivan Prenosil 2006-01-15 18:11:31 +00:00
robocop
1ca7a582f9 EXPRESSION_INDICES code is considered stable and therefore there's no need to keep it protected by macros. Please do a full rebuild. 2006-01-14 07:00:44 +00:00
robocop
be13107102 Misc. 2006-01-04 05:55:24 +00:00
dimitr
68ea35e64c More realistic BLR buffer. We don't need redundant allocations. 2005-12-21 17:49:47 +00:00
dimitr
96f644b6bd Fixed a few wrong error messages + minor cleanup. 2005-12-12 17:36:19 +00:00
dimitr
75fade8b0a Ported solution for SF #1371274 from Yaffil + minor cleanup. 2005-12-12 17:27:10 +00:00
dimitr
52abeceb5e Changed location of some defines in order to avoid internals inside ibase.h. 2005-12-05 11:31:45 +00:00
hvlad
84244fc30e Regenerate parser files 2005-12-04 12:21:00 +00:00
hvlad
c333e74b4c 1. Correct end_default_opt rule
2. Fix wrong error reporting found by Claudio
2005-12-04 12:18:51 +00:00
asfernandes
68830f0724 Lookup for procedure parameters in isc_blob_lookup_desc 2005-12-02 00:28:14 +00:00
dimitr
9e7ae46d1f Simplified code a bit. Fixed the crash with the usage of TRIM in aggregation. 2005-11-30 09:03:53 +00:00
hvlad
d7ccce5c37 Regenerated parser files after parse.y change 2005-11-29 16:13:03 +00:00
hvlad
217fd7e959 Second attempt to fix issue with parser and not correctly stored source
for DEFAULT CURRENT_TIME\DEFAULT CURRENT_TIMESTAMP
2005-11-29 16:09:02 +00:00
robocop
5508320ef7 Misc. 2005-11-29 06:24:56 +00:00
arnobrinkman
ee9ac954ee Fix column-name problem with UNION and derived fields.
Problem found by Volker Rehn.
2005-11-28 23:06:53 +00:00
alexpeshkoff
62a24d46e4 1. Moved data structures, written to database file, into ods.h.
2. Added new types of clumplets to ClumpletReader and ClupmletWriter.
3. Applied modified ClumpletReader and ClupmletWriter to /remote and partially /jrd.
4. Added active protection from remote brute-force attack to services API.
2005-11-27 20:53:09 +00:00
arnobrinkman
d1e0291152 Add missing nodes to sub-select detection 2005-11-26 16:15:47 +00:00
dimitr
a34cf16466 Let's generate blr_blob2 for PSQL blobs instead of blr_quad.
This allow PSQL blobs to carry the charset/collation attributes.
2005-11-25 14:58:50 +00:00
hvlad
b144b0267d Enlarged dsql and jrd hash tables sizes 2005-11-21 23:52:11 +00:00
hvlad
b5094b2b2c Regenerated parser files after parse.y change 2005-11-21 17:58:07 +00:00
hvlad
a174b8336f Fixed issue with parser and not correctly stored source
for DEFAULT CURRENT_TIME\DEFAULT CURRENT_TIMESTAMP
2005-11-21 17:57:20 +00:00
robocop
d1373b1555 Fix clash with winbase.h on IGNORE. 2005-11-18 04:39:47 +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
a0ea9ad0bc Globals must die, epysode III. 2005-11-12 18:48:09 +00:00
arnobrinkman
a381385af0 Fix problem with sub-queries/derived tables in the HAVING clause 2005-11-08 23:49:50 +00:00
robocop
405346ba33 Fix SF-bug field-test #1192225. 2005-10-30 08:15:29 +00:00
dimitr
5e8af7b048 Implemented RECREATE TRIGGER. 2005-10-29 09:15:37 +00:00
alexpeshkoff
5724d3eb15 Fixed SS deadlock in DSQL 2005-10-28 16:34:59 +00:00
dimitr
953aa2dfd0 Fixed the bug noticed by Claudio. 2005-10-28 05:37:34 +00:00
dimitr
85388cd3c7 1) Fixed check constraints
2) A bit simplified generation of check option triggers
3) Cleanup of unused parser stuff
2005-10-26 18:21:32 +00:00
arnobrinkman
a93df44449 Fix NEW/OLD context problem found by Dmitry 2005-10-25 20:42:29 +00:00
dimitr
868a5bb21f Better (and more honest) diagnostics. 2005-10-21 09:43:26 +00:00
dimitr
23eb1ca985 Change the visibility rules for uncommitted relations.
The goal is to simplify them and fix known issues with ALTER TABLE.
Hopefully, this won't cause any side effects.
2005-10-21 08:47:26 +00:00
robocop
68f3568b0f Close the remaining, third item in SF Bug #217042. Now the four items are solved.
However, this third item was the tip of the iceberg: computed fields silently dropped implicit or explicit charset/collation/sub_type specification, whether it was derived from the expression or dictated by an explicit cast.
Also, had to invent a new flag to deal with relations being just created now and whose db_key_length obviously doesn't exist. Still looking for better solution.
2005-10-08 06:52:57 +00:00
robocop
e2dd9845b5 Totally misc. 2005-10-08 06:47:34 +00:00
robocop
7d304b0fbb Fix SF Bug #1292007
Move some hardcoded error texts to the msg database.
2005-10-06 06:08:10 +00:00
robocop
01e8fab3e0 Trim unneeded blanks and some control characters between DEFAULT clause and the default value itself in procedure parameters, too.
Trim unneded blanks and some control characters before the BEGIN or DECLARE clauses in a procedure body.
2005-09-30 07:50:39 +00:00
dimitr
75ac53eeb4 Temporarely rolled back to the previous end_trigger logic due to found issues.
Still looking for a proper solution.
2005-09-28 13:23:02 +00:00
arnobrinkman
3326dd95ff Fix another "with check option" issue <sigh> 2005-09-27 20:41:18 +00:00
hvlad
1b26b6e6b5 Make code more robust. Reported privately by Tom Cole 2005-09-27 19:23:24 +00:00
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