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

392 Commits

Author SHA1 Message Date
asfernandes
fbcaf72adf Move and rename methods 2009-12-06 19:11:25 +00:00
asfernandes
255dbbbf65 Remove definitions not used by btyacc 2009-12-06 02:07:04 +00:00
asfernandes
7a78601ef2 1) Use metadata character set in DSQL cache
2) Make exceptions in metadata charset and convert them to the client charset - this should fix CORE-2431
3) Support for "internal" (engine) DSQL statements and use in COMMENT ON
2009-12-05 14:21:52 +00:00
robocop
4a57061d69 Comments. 2009-12-04 09:23:53 +00:00
asfernandes
3b8491a0bf Reject zero length identifiers in the scanner 2009-11-22 01:19:22 +00:00
asfernandes
7c11f5b6b0 Misc 2009-11-22 00:09:30 +00:00
asfernandes
7fa91459a2 Misc 2009-11-21 20:44:13 +00:00
asfernandes
200a63b1b4 Reduce usage of legacy (and unsafe) nodes related to PSQL parameters and variables.
Use btyacc feature "inherited attributes" (kind of parameters for non-terminals).
2009-11-21 20:42:27 +00:00
asfernandes
7f82952295 Some needed casts related to previous commit 2009-11-21 03:16:40 +00:00
asfernandes
efa24dca6b Reduce a number of casts related to NUMBER token. While at it, make the changed rules with a decent format. 2009-11-21 01:02:51 +00:00
asfernandes
13e1546a70 Misc 2009-11-21 00:10:16 +00:00
robocop
47008b1bbb Misc. 2009-11-17 07:33:39 +00:00
asfernandes
65b5de871e Comments and style 2009-11-16 15:54:17 +00:00
asfernandes
cefe295ad9 Misc 2009-11-14 01:20:33 +00:00
alexpeshkoff
4f54fd68e8 Frontported improvement CORE-2748: allow gsec to grant RDB$ADMIN role in the security database 2009-11-13 19:00:09 +00:00
robocop
afe2eb752f Feature CORE-2744: inverse hyperbolic trigonometric functions. 2009-11-11 10:55:39 +00:00
asfernandes
a8c428f6cd Fixed CORE-2739 - ASSERT at parse.cpp line 22885 2009-11-07 19:02:46 +00:00
robocop
f3d871ebad Avoid conflict with Windows-specific macros. 2009-11-01 10:55:05 +00:00
hvlad
c3126026f6 Fixed bug CORE-2720 : Wrong evaluation result with divide and unary plus\minus operations 2009-10-31 20:02:51 +00:00
asfernandes
d59001341c Misc 2009-10-31 17:31:48 +00:00
dimitr
5c80805bed Cleanup. 2009-10-31 11:45:44 +00:00
dimitr
7bdb39e616 Wipe out the SCROLLABLE_CURSORS code + minor cleanup.
Also, surfaced scrollability for PSQL cursors (without internal support yet).
2009-10-31 06:17:49 +00:00
asfernandes
4a3d198ade Misc 2009-10-31 01:46:06 +00:00
robocop
b304b96224 Misc. 2009-10-30 10:43:42 +00:00
asfernandes
35598c7bb9 Use already declared variable instead of $2 as see by Claudio 2009-10-25 14:46:35 +00:00
asfernandes
b00b74f6f7 Use bool type in release_only_opt 2009-10-25 01:11:34 +00:00
asfernandes
5b63c76a78 Misc 2009-10-25 01:08:00 +00:00
asfernandes
7fe0366123 Do not declare type for "noise" nodes 2009-10-24 19:15:02 +00:00
asfernandes
b31aaf0129 Some statements nodes refactor - creation of IfNode, ExitNode, SuspendNode, PostEventNode and SavePointNode. 2009-10-24 17:45:33 +00:00
dimitr
476431790f Correction. 2009-10-22 07:21:13 +00:00
asfernandes
ed0e0daeb3 - External Engines implementation.
- Plugins API.

- Feature CORE-2700 - UDR (User Defined Routines) Engine - C++ API supporting functions, triggers and stored procedures.
- Feature CORE-2470 - Support for alternate format of strings literals.
- Feature CORE-2310 - DDL triggers.
- Feature CORE-2312 - PSQL Packages.
- Feature CORE-1209 - CONTINUE statement.
- Feature CORE-1180 - DDL syntax to change (not) nullable state of columns.
- Feature CORE-2090 - Support OVER () clause with current aggregate functions.

- Fixed CORE-2699 - Common table expression context could be used with parameters.

- Introduce ODS 12.0.

- Work in progress in type-safe parser.
- Refactor some DDL commands (procedures and triggers) from DYN to DdlNodes.
- Refactor virtual tables to use a class hierarchy instead of namespaces. This is basic thing, not based on the changes done in Vulcan. Window functions is based on this work.
- Refactor COMMENT ON and DROP FUNCTION from DYN to DdlNodes. COMMENT ON do not use GDML anymore, it uses DSQL with PreparedStatement class.
- Refactor EXECUTE BLOCK to StmtNodes.
- Refactor the IUDF to SysFunctions. That eliminates RDB$GET_CONTEXT and RDB$SET_CONTEXT from RDB$FUNCTIONS.
2009-10-21 00:42:38 +00:00
robocop
cdb6e7501d Misc comment, mark the end of the "unreserved" words. 2009-09-24 08:55:34 +00:00
alexpeshkoff
6c1d6c2241 Fixed CORE-2638: Make words, non-reserved according to SQL speciication, non-reserved in our grammar 2009-09-24 07:39:22 +00:00
asfernandes
f590889311 Fixed CORE-2607 - Introducer (_charset) problems with monitoring and persistent modules 2009-08-30 02:26:50 +00:00
asfernandes
398975b940 Misc 2009-08-20 01:32:24 +00:00
robocop
8ce0cf3e79 Style. 2009-08-16 05:25:30 +00:00
hvlad
9a749a272f Implement improvement CORE-2452 : Add Role Name in input parameters for EXECUTE STATEMENT 2009-05-14 10:21:47 +00:00
asfernandes
6ac2dd4cc6 Remove the DEBUG command 2009-05-08 00:33:37 +00:00
robocop
888000e21e Unused function params. 2009-04-26 10:24:44 +00:00
dimitr
d04031e75c Fixed (fingers crossed) CORE-2430: Server adds "NOT" at the end of default value for the TIMESTAMP field. 2009-04-16 04:40:41 +00:00
asfernandes
a829a9c88b Cleanup for NOD_CONST_SPECIAL. It's not needed anymore. 2009-04-10 20:18:17 +00:00
asfernandes
f45c2de7e0 Remove obsolete comment 2009-02-07 21:24:54 +00:00
dimitr
ddfdab6365 Make SIMILAR a migrateable keyword. 2009-01-29 11:55:11 +00:00
robocop
41d41f2a2c Only spaces. 2009-01-09 04:20:28 +00:00
alexpeshkoff
4e04614a62 fixed build 2009-01-08 15:15:28 +00:00
robocop
b627ad2a39 Style. 2009-01-07 09:30:57 +00:00
asfernandes
53f18ba5fc Fixed CORE-2265 - Grouping by function doesn't work properly
(This is related to CORE-1246 changes)
2009-01-04 18:41:36 +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
cc5b689eda Misc 2008-08-29 02:18:50 +00:00
alexpeshkoff
b61c1b2e59 Fixed diagnostics broken by my previous commit - thanks to Claudio 2008-08-27 07:33:09 +00:00
asfernandes
736659c1a1 Misc 2008-08-16 15:42:38 +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
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
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
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
robocop
d9c191f831 Fix the logic in two unused functions (in case they aren't dropped). 2008-06-05 10:58:17 +00:00
asfernandes
0d84abc6d4 Fixed CORE-1919 - Memory corruptions in EXECUTE STATEMENT may crash the server 2008-06-01 01:19:54 +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
asfernandes
9fc4a1881f Misc 2008-05-22 21:45:22 +00:00
robocop
66aab208b0 Simplification. 2008-05-21 12:52:29 +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
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
28d5b99afc Misc 2008-04-16 16:02:01 +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
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
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
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
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
dimitr
29229a10a6 Simplify the optional default value parsing and processing. This also fixes CORE-1512. 2008-04-04 16:53:29 +00:00
dimitr
08c5783ab2 Misc. 2008-04-03 11:02:11 +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
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
99caa91b85 DSQL integration into the engine. 2008-02-28 13:48:16 +00:00
asfernandes
4b58bb06f1 Feature CORE-1760 - Support hex numeric and string literals 2008-02-27 16:00:31 +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
f19d9ec09b Improvement CORE-1453 - Allow usage of functions in LIST delimiter parameter 2008-02-05 14:33:42 +00:00
asfernandes
607ef7d9fa Encapsulate the parser and make it thread safe 2008-02-03 19:16:12 +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
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
asfernandes
4e426d0739 Commit forgotten change 2007-11-26 09:57:19 +00:00
asfernandes
54b36766c0 Misc 2007-11-17 00:38:16 +00:00
paulbeach
7602a29b94 HPUX Port 2007-11-12 14:26:44 +00:00
alexpeshkoff
e4271ba6fa Fixed CORE-1501: Wrong access to SLONG data in dsql_nod 2007-10-17 14:35:31 +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
dimitr
4284e1ee34 Resolved CORE-1386. 2007-08-27 10:50:00 +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