8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 06:03:02 +01:00

Fixed CORE-3380 - Disable reading from new BLOB.

This commit is contained in:
Adriano dos Santos Fernandes 2019-12-18 13:05:04 -03:00
parent c8623de4c2
commit 99ca8782fe
3 changed files with 5 additions and 1 deletions

View File

@ -625,6 +625,9 @@ USHORT blb::BLB_get_segment(thread_db* tdbb, void* segment, USHORT buffer_length
SET_TDBB(tdbb);
Database* dbb = tdbb->getDatabase();
if (blb_flags & BLB_temporary)
IBERROR(308); // msg 308 cannot read new blob
if (--tdbb->tdbb_quantum < 0)
JRD_reschedule(tdbb, 0, true);

View File

@ -12,7 +12,7 @@ set bulk_insert INSERT INTO FACILITIES (LAST_CHANGE, FACILITY, FAC_CODE, MAX_NUM
('2018-04-26 20:40:00', 'GBAK', 12, 391)
('2019-04-13 21:10:00', 'SQLERR', 13, 1047)
('1996-11-07 13:38:42', 'SQLWARN', 14, 613)
('2018-02-27 14:50:31', 'JRD_BUGCHK', 15, 308)
('2019-12-18 12:10:00', 'JRD_BUGCHK', 15, 309)
('2016-05-26 13:53:45', 'ISQL', 17, 197)
('2010-07-10 10:50:30', 'GSEC', 18, 105)
('2019-10-19 12:52:29', 'GSTAT', 21, 63)

View File

@ -3013,6 +3013,7 @@ COMMIT WORK;
-- Do not change the arguments of the previous JRD_BUGCHK messages.
-- Write the new JRD_BUGCHK messages here.
(NULL, 'get_header', 'dpm.epp', NULL, 15, 307, NULL, 'RDB$PAGES written by non-system transaction, DB appears to be damaged', NULL, NULL);
(NULL, 'BLB_get_segment', 'blb.cpp', NULL, 15, 308, NULL, 'cannot read from new BLOB', NULL, NULL);
-- ISQL
('GEN_ERR', 'errmsg', 'isql.e', NULL, 17, 0, NULL, 'Statement failed, SQLSTATE = @1', NULL, NULL);
('USAGE', 'ISQL_main', 'isql.epp', NULL, 17, 1, NULL, 'usage: isql [options] [<database>]', NULL, NULL);