dimitr
4af9803007
Slightly different fix for CORE-3722: IS NOT DISTINCT FROM NULL doesn't use index.
2012-01-10 13:15:09 +00:00
dimitr
2dd5b35f2b
Cleanup. We don't need a separately stored global index selectivity for along time already.
2012-01-07 02:30:42 +00:00
asfernandes
906ea4729e
Misc.
2011-10-27 01:04:14 +00:00
dimitr
1b0ff623e7
Misc.
2011-10-10 10:39:59 +00:00
dimitr
c5c557c3ba
Front ported recent commits.
2011-07-22 07:00:09 +00:00
dimitr
ce9e812717
Fixed CORE-2709: Many indexed reads in a compound index with NULLs. Note that it's an ODS change, so nullable compound indices may require recreation.
2011-07-14 12:31:36 +00:00
dimitr
eb546d94ba
Front ported CORE-3547: Floating-point negative zero doesn't match positive zero in the index.
2011-07-13 15:15:34 +00:00
asfernandes
0193d90f6c
Fix definition and usages of fb_assert.
2011-02-26 16:03:36 +00:00
asfernandes
4e0afa0b53
Misc
2011-02-25 01:03:29 +00:00
dimitr
af76dc8de8
Better solution for CORE-3355, as suggested by Vlad.
2011-02-22 12:43:14 +00:00
dimitr
b0e3c9f94d
Fixed CORE-3355: Wrong comparison of DATE and TIMESTAMP if index is used.
2011-02-21 11:18:29 +00:00
asfernandes
e623bb4bf1
Misc
2011-02-18 00:52:10 +00:00
dimitr
bccfda7aa6
Misc.
2011-02-15 07:32:56 +00:00
dimitr
e92c40eed7
Fixed the error handling behavior in fast_load(), now it corresponds to the original (FB1) one.
...
Fixed a possible bugcheck because of an unexpectedly missing index root page.
Simplified the various jump node structures usage.
2011-02-12 21:32:05 +00:00
alexpeshkoff
f89ac854ef
Getting ready to use 32 (not 31) page and transaction numbers
2011-01-21 17:55:04 +00:00
asfernandes
c9ec26c0c3
Feature CORE-726 - Boolean data type
2010-12-18 02:17:06 +00:00
asfernandes
a3064848d6
Make ExprNodes and RecordSourceNodes reference others directly instead of via jrd_nod.
...
Store ValueExprNodes instead of jrd_nod in the metadata cache.
Make RecordSourceNode child of ExprNode as they share most operations.
Get rid of the JRD visitors in favor of direct calls.
Convert assignments statement lists created inside expressions to separate source and targets ValuesExprNodes.
2010-11-21 03:47:29 +00:00
asfernandes
4dea3a42a1
Remove dependency of jrd_nod in ExprNode
2010-11-14 22:31:42 +00:00
alexpeshkoff
e05c1a825f
Moved some more .h-files to common from jrd as Vlad suggested
2010-10-13 10:39:52 +00:00
alexpeshkoff
2dc25a44bb
OSRI and new posix build
2010-10-12 08:02:57 +00:00
asfernandes
de5098b85d
Misc
2010-08-10 00:37:26 +00:00
asfernandes
dadc0f560c
Const correction for EVL, EXE and they subsystems. Adjustments to CMP and OPT.
2010-08-09 15:48:51 +00:00
asfernandes
e37d097240
Misc
2010-05-22 02:00:45 +00:00
asfernandes
632e72c3a5
Correction for CORE-2826 - Join condition fails for UTF-8 databases
2010-05-17 15:18:57 +00:00
asfernandes
bac1cfa1c4
Fixed CORE-2826 - Join condition fails for UTF-8 databases
2010-05-11 15:59:19 +00:00
asfernandes
4763533669
Refactor jrd_req into JrdStatement (shared part) and jrd_req (execution of a statement).
...
Fixed some bugs found in the way.
2010-04-18 22:19:11 +00:00
dimitr
1c9adc5300
Cleanup.
2010-04-06 16:26:27 +00:00
dimitr
fd625ac853
Release the sort resources as soon as possible, per Claudio's request.
...
Actually, this corresponds to the pre-v3.0 behavior.
2010-04-01 06:57:34 +00:00
hvlad
b86cb833f0
Fixed bug CORE-2936 : Wrong page type (expected 7 found N) error
2010-03-22 22:52:22 +00:00
asfernandes
cd0c292823
Misc
2010-03-17 02:12:39 +00:00
dimitr
63bedffa71
Refactored the sorter into a proper class.
...
Removed some dead code and unused files.
2010-03-16 11:19:29 +00:00
dimitr
e5a732d782
Cleanup the dead code remaining from the legacy scrollable cursors feature.
2010-03-16 06:21:28 +00:00
dimitr
42fbd2615b
Front ported CORE-2833: Changing data that affects an expression index that contains references to null date fields fails.
...
Also, removed the duplicated (and, at the first glance, unnecessary) code that forced us to deal with the already_attached flag. To be tested in the field.
2010-02-26 09:02:22 +00:00
asfernandes
5cb37fda71
Misc
2010-02-11 01:08:20 +00:00
hvlad
3b4a374a16
Fixed bug CORE-2586 : Non-NULL key in unique index could be not found when key is removed
2010-02-10 14:48:02 +00:00
asfernandes
534b8c020e
Misc
2009-12-25 19:29:58 +00:00
robocop
0564019d2f
Misc and cleanup.
2009-12-24 11:48:17 +00:00
dimitr
79a2e9bdcb
Cleanup.
2009-12-23 14:19:38 +00:00
alexpeshkoff
b3ff195a64
Cleanup - two flags are always set to true starting with ODS > 10
2009-12-22 10:30:49 +00:00
dimitr
11495a55fb
Refactored the whole RSB stuff into classes. They're inside the /recsrc sub-directory now.
...
Fixed the layering for WITH LOCK and (partially) ANY/ALL predicates.
Cleaned up the outdated code that never worked (mapping DISTINCT to an index, some VMS remainings).
Wiped out a lot of the pre-ODS11 optimizer logic. Some minor adjustments there.
Re-implemented the full outer join from scratch. This resolves CORE-2678 (full outer join cannot use available indices).
Resolved CORE-2796: DB_KEY is always zero for external tables.
Implemented the core part of the scrollable PSQL cursors. Implementation is still incomplete, but ready for testing.
Some other changes I don't recall at the moment ;-)
WARNING! The engine may be unstable. Please email me about any issues found.
2009-12-09 18:45:44 +00:00
robocop
f955568fc9
The architect created ODS12 and saw it was good, then he said "thy shall be the only one among your race", dropped the older ones and sent the developers to the four corners of the cyberspace to convert the masses to ODS12.
2009-11-27 02:33:40 +00:00
robocop
579a456329
Style.
2009-11-25 08:38:52 +00:00
robocop
d6ceb87638
Cleanup.
2009-11-25 04:52:54 +00:00
robocop
5a1e3fb0aa
Restrict us to ODS11 and ODS12 until the dust settles down.
2009-11-24 12:22:31 +00:00
robocop
804ad6048a
Restrict us to ODS11 and ODS12 until the dust settles down.
2009-11-24 11:42:56 +00:00
robocop
1386adcf90
Style.
2009-11-16 08:06:31 +00:00
dimitr
e6909de7f7
Wipe out the SCROLLABLE_CURSORS code + minor cleanup.
...
Also, surfaced scrollability for PSQL cursors (without internal support yet).
2009-10-31 06:25:01 +00:00
asfernandes
19fac12314
Misc
2009-10-21 01:01:04 +00:00
hvlad
19e817cb70
Fixed bug CORE-2684 : Error page NNN is of wrong type (expected 7, found N)
2009-10-15 09:16:31 +00:00
hvlad
6fde607f41
Fixed bug CORE-2616 : page 1530262 is of wrong type (expected 7, found 5)
2009-09-24 21:05:45 +00:00
asfernandes
d4e407cb3f
Misc
2009-09-24 02:11:10 +00:00
hvlad
08812363ad
A little paranoid addition to the fix for CORE-2635
2009-09-23 10:32:58 +00:00
hvlad
aca4df4e9a
Fixed bug CORE-2635 : Unique index with a lot of NULL keys can be corrupted at level 1
2009-09-22 21:01:16 +00:00
dimitr
8e36474f76
More explicit (and shorter) life-time for sort blocks. Now they belong to either requests (user sorts) or transactions (index sorts).
...
This also resolves CORE-2477: mon$memory_usage: Sorting memory should be reported as owned by the statement.
2009-09-04 06:11:55 +00:00
robocop
abae34b092
We never handled ODS_VERSION7 (see FB1 for example). Thanks Dmitry.
...
Rework code for readability.
2009-08-24 10:21:14 +00:00
robocop
17cefa486e
Comments.
2009-08-21 08:54:56 +00:00
robocop
f7b2032c31
Typo repeated.
2009-06-27 11:12:49 +00:00
robocop
f10e1b72eb
Style.
2009-06-27 06:23:36 +00:00
robocop
d82f063395
Style.
2009-06-26 04:12:20 +00:00
robocop
48377f4e35
Convert goto into a for() loop.
2009-06-25 10:59:10 +00:00
asfernandes
097b0ca2c2
Misc
2009-06-25 02:29:13 +00:00
robocop
bb83e70cfe
Isolate even more the scrollable cursors-related code.
2009-06-22 08:45:38 +00:00
robocop
c9feb04a8a
Simplification.
2009-06-21 08:32:55 +00:00
robocop
f3fdc5b5c7
Give idx_id and associated values a consistent data type and treatment.
2009-06-21 06:04:18 +00:00
robocop
a958da87f5
Style.
2009-06-21 05:46:51 +00:00
asfernandes
bbb06eca72
Fix assertion at INTL due to much longer buffer
2009-05-06 16:34:18 +00:00
dimitr
93be80a4aa
Fixed CORE-2449: Unexpected "lock conflict" error can be thrown instead of other (expected) exception.
2009-05-05 09:32:45 +00:00
alexpeshkoff
ae92789faf
Fixed bugs noticed by Claudio
2009-05-05 07:27:20 +00:00
asfernandes
38a2912669
Misc
2009-05-03 21:57:13 +00:00
robocop
60ba0586dd
Undo two of Alex' suspicious or wrong changes until he can return and rethink them.
2009-05-02 13:05:29 +00:00
robocop
66b1227b22
Unused params, some formatting, cleanup.
2009-05-01 17:21:36 +00:00
alexpeshkoff
8c983fec26
Fixed alignment issues with on-stack vary strings
2009-04-29 14:00:32 +00:00
asfernandes
f6f364da49
Trim trailling spaces
2009-04-04 16:39:31 +00:00
robocop
a730fbf074
Get rid of more typedefs.
2009-04-03 10:07:55 +00:00
robocop
fab6a3a6cf
Get rid of superflous parentheses.
2009-02-28 11:57:40 +00:00
asfernandes
7ba3e7d0e5
Misc
2009-02-11 01:32:09 +00:00
hvlad
1f8e353154
Comment my recent (not obvious) change
2009-02-09 15:12:55 +00:00
asfernandes
1105286dee
Misc
2009-02-07 15:20:34 +00:00
hvlad
f4544ce4a0
Performance : use stack allocation when possible
2009-02-06 19:38:48 +00:00
robocop
3689f15321
Style.
2009-01-20 08:33:59 +00:00
asfernandes
296f170224
Misc
2009-01-04 20:32:35 +00:00
asfernandes
79e89d573d
Misc
2009-01-03 19:02:04 +00:00
hvlad
8646bad2f9
Fixed bug CORE-2241 : Wrong number of records fetched when using index
2009-01-02 09:49:50 +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
asfernandes
5c97a235e3
Misc
2008-12-24 00:32:49 +00:00
robocop
2fadc0e456
Style.
2008-12-22 09:00:05 +00:00
asfernandes
5311dd5a5e
Misc
2008-12-20 19:57:43 +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
robocop
ff99dc3d46
Style.
2008-12-18 10:47:25 +00:00
robocop
511c7eb7d8
Promote thread_data* as function argument.
2008-12-14 10:19:27 +00:00
asfernandes
8fbf0e8e8c
Remove trailing spaces (.cpp files)
2008-12-05 01:20:14 +00:00
dimitr
3b03866f7e
This change is intended to make the engine responsible to async requests (shutdown, cancellation, etc) while performing long index scans.
2008-09-16 10:27:30 +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
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
robocop
b629df88ff
Correction for logic error (it worked by pure coincidence).
2008-06-05 10:56:14 +00:00
robocop
8a28565ea7
Misc.
2008-05-08 08:19:50 +00:00
dimitr
e0c6d0e13d
Fixed CORE-1812.
2008-05-06 09:40:22 +00:00
hvlad
7970d15d65
A little correction and more explanations in comment
2008-04-03 11:13:20 +00:00
asfernandes
f0299cfb29
Misc
2008-04-03 01:11:26 +00:00
hvlad
259fafa647
Implement CORE-1819 : More efficient solution for CORE-1300
2008-04-02 23:46:59 +00:00