dimitr
98534ec317
Better error handling for CORE-1544.
2008-12-09 18:33:22 +00:00
asfernandes
0f387a9bee
Misc
2008-09-06 18:42:55 +00:00
robocop
847438c1f1
Correction. We want to write rdb$system_flag always.
2008-09-06 11:38:27 +00:00
dimitr
02bc98b01e
Fixed CORE-1544: RDB$procedures generator overflow.
...
The fix also solves the same issue with exceptions and generators.
2008-09-05 09:32:51 +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
asfernandes
0812cdebcd
Fixed CORE-2008 - NOT NULL procedure parameters
2008-07-28 15:40:09 +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
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
580ad8ccdb
Write sysflag always.
2008-03-26 02:07:56 +00:00
dimitr
542c591541
Table and procedure must share the same namespace. Thanks to Adriano.
2008-03-21 06:34:54 +00:00
dimitr
4ce29e0624
Sync with SAS: Better diagnostics for some DYN errors.
2008-03-17 17:58:47 +00:00
dimitr
a38b327886
Cleanup. Get rid of the JrdMemoryPool.
2008-01-29 10:11:52 +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
2c78462820
The merge continued.
2008-01-16 08:46:02 +00:00
alexpeshkoff
eea9070f48
Optimized RuntimeStaticstics (and related part of ThreadDb) for performance - some tests run 25faster
2007-12-03 15:46:39 +00:00
hvlad
d91be7de26
Fixed bug CORE-1597 : GLOBAL TEMPORARY TABLEs allowed to be created in ODS less than 11.1
2007-11-15 23:03:43 +00:00
robocop
3a7d93f658
Misc tweaks with Firebird::string.
2007-08-26 09:53:08 +00:00
robocop
fa1538a1ae
Minor changes in MetaName usage.
2007-08-26 09:05:29 +00:00
asfernandes
fda4406b41
Fixed CORE-1369 - Downgrade from ODS11.1 misses default values of procedure parameters
2007-07-20 01:45:20 +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
asfernandes
9582ea243c
1) Upgrade INTL interface to undestand misc. configuration informations
...
2) Make our ICU collations work with different ICU versions (tested with ICU 3.6)
2007-04-15 15:57:12 +00:00
alexpeshkoff
f0d465bf34
Fixed gcc warnings, general (un)signed usage cleanup
2007-04-11 09:28:50 +00:00
asfernandes
2904d5d96d
Misc
2007-03-31 02:19:37 +00:00
robocop
e71a03261c
This is the full SafeArg implementation for getting rid of the fixed parameter types in the messages db. Alas, the legacy messages (before FB2.1) can't be changed in number of arguments neither the types of arguments sent by callers of the MsgPrint family or the fb_msg_format functions can be changed because old clients know these legacy messages and would crash.
2007-03-28 04:20:36 +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
6da2d6c615
Fixed CORE-986 - Non-ASCII quoted identifiers are not converted to metadata (UNICODE_FSS) charset
2006-11-04 03:45:02 +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
asfernandes
1d422a8330
1) Refactor intl_classes.h and intl.cpp
...
2) Make conversions from CharSet1->UTF16->CharSet2 job of CsConvert class
2006-10-10 19:40:33 +00:00
asfernandes
48d51e53c2
Misc
2006-10-02 02:39:45 +00:00
asfernandes
06c273a293
Fixed untracked collation dependencies in PSQL
2006-10-01 22:09:05 +00:00
robocop
f32795fe1d
More improvements for CORE-945 because there are other confusing messages in DYN.
2006-10-01 09:14:38 +00:00
asfernandes
597cd7844c
Fixed CORE-945 - Bad error message when trying to create FK to non-existent table
2006-09-30 16:17:24 +00:00
asfernandes
ad0143ac68
Always check max length of DDL strings
2006-09-27 16:48:33 +00:00
asfernandes
9d4e6c7199
Misc
2006-09-06 02:43:37 +00:00
robocop
6f7e1c34a8
Fix CORE-851 by brute force: linear search, slow for indices with lots of segments.
2006-09-05 09:04:03 +00:00
aafemt
e6151fd57f
Warnings
2006-09-01 10:51:57 +00:00
robocop
4b4d5ae0e7
Make sure these domain fields remain NULL for the new ODS.
2006-08-30 04:55:15 +00:00
dimitr
fc790706e7
Fixed creation of views and external tables.
2006-08-29 05:38:52 +00:00
asfernandes
a1b03ceefb
Correction for default value of parameters
2006-08-26 02:02:46 +00:00
dimitr
bb34500a8b
Fixed another bug reported in fb-devel.
2006-08-25 05:42:11 +00:00
asfernandes
b7af27215e
Allow usage of domains in PSQL (with TYPE OF syntax)
2006-08-19 02:52:39 +00:00
alexpeshkoff
205a7303c3
1. Centralized validation of attachment to be a super-user attachment.
...
2. Fixed a couple of old problems, when sysdba could perform operations, but
database owner - could not.
3. Fixed CORE-84 - nbackup operations were allowed for everybody who can login
to the given database.
4. Disabled creating shadows and adding additional DB-files for non super-user.
2006-08-16 15:15:58 +00:00
asfernandes
82fd656a20
Misc
2006-08-12 16:13:20 +00:00
asfernandes
539ae2be77
Misc
2006-08-12 16:12:24 +00:00
asfernandes
e538061c38
Implementation of CREATE/DROP COLLATION and ISQL show/extraction of collations
2006-08-07 16:39:21 +00:00
asfernandes
2670981b70
Create common UCharBuffer based on Claudio and Alex suggestions
2006-07-31 15:43:20 +00:00
asfernandes
772fa52bdf
Correction
2006-07-31 12:35:16 +00:00
asfernandes
273da882bc
Misc
2006-07-31 01:46:52 +00:00
asfernandes
c13b4cc61a
Work on collation attributes:
...
1) Define a common format for it
2) Merge attributes of the base collation in the attributes of the derived one
2006-07-30 20:31:25 +00:00
alexpeshkoff
a02cc1bd60
fix illegal RDB$CHARACTER_LENGTH in UDF arguments
2006-07-28 12:26:34 +00:00
asfernandes
2689003a91
Misc
2006-07-18 18:02:54 +00:00
dimitr
4bb6dda45c
More reliable code, just in case.
2006-07-18 11:17:34 +00:00
dimitr
549a412019
Cleanup of some older remainings...
2006-07-18 09:55:01 +00:00
dimitr
c68587fe66
1. Virtual tables
...
2. ODS 11.1, procedure type and relation type
2006-07-17 17:44:18 +00:00
robocop
4ca73444e5
- Fix message requesting a unique index to request a UK or PK constraint to be able to create a FK: indexes manually created aren't honored.
...
- Commit (without external or self documentation) a debugging features in isql to show dependencies with cryptic. not suite for end users output:
SHOW DEPENendenc[y | ies] obj_name
2006-07-14 06:57:19 +00:00
robocop
5a796f0b4e
Misc.
2006-07-09 05:08:23 +00:00
hvlad
c56ec0b730
Correct GTT's error reporting code as Claudio suggested
2006-05-27 21:19:15 +00:00
asfernandes
1dcdd0d3ca
Misc
2006-05-25 03:15:53 +00:00
hvlad
614443f90d
Refactor common code and constants
2006-05-24 20:43:07 +00:00
hvlad
caeacdc13d
Added check of relation temporary scope for foreign key constraints defined
...
in CREATE TABLE statement. Noted by Adriano
2006-05-23 20:01:17 +00:00
dimitr
211645e3dc
Getting rid of the old allocator routines.
2006-05-23 10:17:00 +00:00
asfernandes
818f56dc3c
Correct error code
2006-05-22 19:43:31 +00:00
asfernandes
1df0aca116
Misc
2006-05-22 03:04:26 +00:00
hvlad
701f2cbda4
Global temporary tables implementation
2006-05-21 22:07:35 +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
dimitr
ee43406e94
Remove DLS where it's not used.
2006-05-17 13:55:01 +00:00
asfernandes
eb77ff3709
Misc
2006-05-01 02:26:10 +00:00
robocop
92fff3bd1e
Trying to solve the directory traversal issue again. The problem would be better solved in the long term if ISC_expand_filename was informed whether we need to verify the path and file is valid (we are loading it) or only the path is valid (we are creating a new file).
2006-04-30 00:39:37 +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
4e53c3eb1c
Fix crash caused by ODS < 11 and rdb$system_flag in rdb$roles, found by Dmitry.
2005-11-16 05:41:16 +00:00
robocop
5743a15afe
DYN must write always the system flag when creating objects.
...
This is the first step before we are able to make rdb$system_flag field mandatory in the future.
2005-10-30 07:44:26 +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
asfernandes
888174719e
Misc.
2005-06-08 02:09:46 +00:00
robocop
b8d1f00f94
- Corrections and changes to Adriano's commit, subject to his inspection.
...
- Solved an endless loop with trim and zero-length trim characters, etc.
- Some places are signaled with FB_COMPILER_MESSAGE for prompt attention.
2005-06-06 08:30:03 +00:00
asfernandes
59213efe7e
Merge INTL branch into HEAD
2005-05-27 22:45:31 +00:00
robocop
e93513cd9a
- Adjust error messages.
...
- Correct way to stop automatically generated triggers from being altered.
2005-05-20 00:23:25 +00:00
robocop
b79672c9a3
Getting rid of commented code that belonged to the dead shared cache and/or WAL.
2005-05-19 08:26:38 +00:00
robocop
43ce2abc98
Correcting myself.
2005-05-18 07:27:25 +00:00
robocop
0285f6bf76
- Implement the proposed COMMENT keyword to allow descriptions in database objects. Subject to change or withdrawal.
...
- Enhance some messages. Reuse some msg numbers that were duplicate.
- Fix some issues found in Alex recent MetaName-related commits.
2005-05-17 07:17:25 +00:00
alexpeshkoff
5729790ed6
1. Applied class MetaName
...
2. Small generic cleanup
2005-05-12 18:28:04 +00:00
dimitr
4f7ad04fc4
Minor corrections.
2005-04-27 18:06:19 +00:00
robocop
aa4673a8dd
Fix the error message for SF Bug #1108909
...
We want to say we don't have rights to the base table/view, not to the view we are creating, of course.
2005-01-26 08:04:50 +00:00
robocop
24742873ad
fb_string.h is moved to common/classes.
2004-12-17 05:41:47 +00:00
robocop
2814294027
Misc.
2004-12-16 03:03:13 +00:00
robocop
fd2bcc04e4
frb_sys_flag becomes fb_sys_flag
2004-11-29 09:09:42 +00:00
robocop
5d7fe7b9a1
Constant for non-specified role.
2004-11-27 06:54:18 +00:00
alexpeshkoff
ea9e900ab3
cleanup of methods, storing data in plain char*
2004-11-14 18:05:13 +00:00
alexpeshkoff
73c3fc3e51
1.fixed problem with double-opened databases on LanMan mounted disk.
...
might cause database corruption.
2.more active use of Firebird::string in isc_file.cpp
2004-11-07 14:43:29 +00:00
dimitr
8d6ebc97d9
Some changes to support procedure-based views. Much work is still required.
2004-10-13 18:17:43 +00:00
robocop
a8da598248
Redundant casts.
2004-10-08 11:08:42 +00:00
robocop
25f115b66e
Closing several possible buffer overruns.
...
Alex is expected to overwrite my changes in isc_file.cpp.
2004-10-08 04:48:02 +00:00
robocop
7b01a5d1c8
Ugh, a change that belong to another, still not posted "configuration" slipped in. Go back.
2004-10-07 09:24:26 +00:00
robocop
4778d95532
Possible buffer overrun.
2004-10-07 09:02:24 +00:00
robocop
31ba754981
After talking to Ann, decided to disable several items:
...
- obsolete items like WAL and JOURNAL (cleaned in the past)
- crud from attempts never finished like the shared cache manager for Classic
- DSQL nodes that aren't used. This allowed freeing some keywords.
The functionality was disabled by commenting the code. No code has been deleted.
2004-10-03 04:49:04 +00:00
robocop
0f876d3492
Fixed wrong function explanation (Borland's advanced copy/paste)
2004-09-27 03:44:54 +00:00
robocop
840bf14b36
If we are using namespace fb_utils, it doesn't make sense to prefix functions in it with fb_ again. Mechanical replacement made one by one (no bulk automatic changes).
2004-09-26 01:49:52 +00:00
robocop
1741432859
Got rid of redundant cast to jrd_req*
2004-08-26 11:07:57 +00:00
alexpeshkoff
31039a254e
next step preparing to allocate auto objects memory from appropriate pool
2004-08-16 12:28:43 +00:00