robocop
fab6a3a6cf
Get rid of superflous parentheses.
2009-02-28 11:57:40 +00:00
asfernandes
28aa57fc50
Fixed CORE-2341 - Hidden variables conflict with output parameters, causing assertions, unexpected errors or possibly incorrect results
2009-02-24 15:51:31 +00:00
robocop
b627ad2a39
Style.
2009-01-07 09:30:57 +00:00
asfernandes
91a4550d23
Misc
2009-01-06 17:46:08 +00:00
robocop
8dca837420
Style.
2009-01-06 05:53:34 +00:00
asfernandes
79e89d573d
Misc
2009-01-03 19:02:04 +00:00
robocop
6406e45337
Shut up compiler warnings (unreferenced vars, uninitialized vars, compile-time conditional code, etc.)
2009-01-02 06:36:12 +00:00
robocop
d11c994960
Style.
2008-12-31 05:06:08 +00:00
asfernandes
b262751dae
Fixed CORE-2230 - Implement domain check of input parameters of execute block
2008-12-10 14:42:09 +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
alexpeshkoff
f6c2181187
make status vector have same structure for most uses of SQLERR -607
2008-10-27 15:10:45 +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
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
alexpeshkoff
b3e51d59e2
fixed release gcc build
2008-08-27 11:06:11 +00:00
robocop
3ffc6889d4
Correction.
2008-08-23 11:08:21 +00:00
asfernandes
736659c1a1
Misc
2008-08-16 15:42:38 +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
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
d30d6410ea
Misc
2008-06-13 01:42:58 +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
b8ea332022
Misc.
2008-06-05 11:02:42 +00:00
robocop
ab2987a3aa
Style.
...
Remove useless parentheses.
2008-06-03 06:19:21 +00:00
alexpeshkoff
093901c134
fixed gcc 3 build
2008-05-28 13:11:36 +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
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
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
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
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
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
asfernandes
d75951e8e5
Misc
2008-04-18 01:37:44 +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
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
9037d1908a
Hope this fix one "problem" detected by Valgrind
2008-04-09 20:01:41 +00:00
asfernandes
017e3a9cd0
Misc
2008-04-06 15:02:35 +00:00
asfernandes
29fbfbb8ff
Misc
2008-04-06 14:45:51 +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
29229a10a6
Simplify the optional default value parsing and processing. This also fixes CORE-1512.
2008-04-04 16:53:29 +00:00
dimitr
13f5cc92e1
Major cleanup of the old-style blk and allocator-based blk_type.
2008-03-19 16:09:00 +00:00
dimitr
ff090e6a7b
Cleanup.
2008-03-12 16:42:51 +00:00
robocop
62c9dd45c6
Let's better use UCHAR for binary streams.
2008-03-05 08:40:55 +00:00
robocop
8888ecb544
Let's better use UCHAR for binary streams.
2008-03-04 06:03:34 +00:00
asfernandes
e88fd596d9
Let DSQL cache lock logic in SS too - per Dmitry request
2008-03-03 15:40:56 +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
asfernandes
35688cd5d9
Cleanup: remove y-valve functions DSQL_CACHE and INTL_FUNCTION
2008-03-01 19:14:46 +00:00
dimitr
99caa91b85
DSQL integration into the engine.
2008-02-28 13:48:16 +00:00
dimitr
c7db4d6a64
Get rid of DsqlMemoryPool.
2008-02-20 15:24:21 +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
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
asfernandes
ed51d0728b
DSQL sync. changes
2008-02-01 20:18:11 +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
dimitr
eac5ac337b
The merge continued.
2008-01-16 06:52:43 +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
alexpeshkoff
e4271ba6fa
Fixed CORE-1501: Wrong access to SLONG data in dsql_nod
2007-10-17 14:35:31 +00:00
dimitr
4b15669f26
Misc.
2007-08-27 10:19:41 +00:00
asfernandes
8c202cdd61
Fixed CORE-1378 - Domain names and charset issues
2007-07-24 16:28:08 +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
a49f8a016f
misc
2007-04-28 14:11:30 +00:00
asfernandes
166fc0b865
Misc
2007-04-13 01:37:44 +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
robocop
77f0788ba0
Misc.
2007-02-02 10:56:53 +00:00
asfernandes
cec7eaa8b6
Some changes based on Claudio's comments
2007-01-21 15:35:35 +00:00
asfernandes
f30ee6b63e
Use debug informations in EXECUTE BLOCK
2007-01-20 14:18:18 +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
d168869475
Added RDB$NULL_FLAG and RDB$PARAMETER_MECHANISM to RDB$PROCEDURE_PARAMETERS
2006-11-24 00:25:13 +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
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
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
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
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
asfernandes
b7af27215e
Allow usage of domains in PSQL (with TYPE OF syntax)
2006-08-19 02:52:39 +00:00
asfernandes
8b31e78863
Misc
2006-08-14 03:34:02 +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
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
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
asfernandes
ea0435247a
Misc
2006-07-18 02:45:35 +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
a86cf35ad4
Synchronization of DSQL metadata cache objects in classic-server
2006-07-10 03:12:10 +00:00