Skip to content

Commit 2917928

Browse files
committed
Make it compile after merge
1 parent 4053ea8 commit 2917928

File tree

7 files changed

+16
-22
lines changed

7 files changed

+16
-22
lines changed

src/jrd/Relation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ RelationPages* jrd_rel::getPagesInternal(thread_db* tdbb, TraNumber tran, bool a
134134
for (auto& idx : indices)
135135
{
136136
MetaName idx_name;
137-
MetadataCache::lookup_index(tdbb, idx_name, this->rel_name, idx->idx_id + 1);
137+
MetadataCache::lookup_index(tdbb, idx_name, this->rel_name, idx.idx_id + 1);
138138

139139
idx.idx_root = 0;
140140
SelectivityList selectivity(*pool);

src/jrd/Relation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Trigger : public HazardObject
5252

5353
Firebird::HalfStaticArray<UCHAR, 128> blr; // BLR code
5454
Firebird::HalfStaticArray<UCHAR, 128> debugInfo; // Debug info
55-
JrdStatement* statement; // Compiled statement
55+
Statement* statement; // Compiled statement
5656
bool releaseInProgress;
5757
bool sysTrigger;
5858
FB_UINT64 type; // Trigger type

src/jrd/met.epp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ static void lookup_view_contexts(thread_db*, jrd_rel*);
121121
static void make_relation_scope_name(const TEXT*, const USHORT, string& str);
122122
static ValueExprNode* parse_field_default_blr(thread_db* tdbb, bid* blob_id);
123123
static BoolExprNode* parse_field_validation_blr(thread_db* tdbb, bid* blob_id, const MetaName name);
124-
static void save_trigger_data(thread_db*, TrigVectorPtr*, jrd_rel*, JrdStatement*, blb*, blb*,
125-
static bool resolve_charset_and_collation(thread_db*, USHORT*, const UCHAR*, const UCHAR*);
124+
static void save_trigger_data(thread_db*, TrigVectorPtr*, jrd_rel*, Statement*, blb*, blb*,
126125
const TEXT*, FB_UINT64, bool, USHORT, const MetaName&, const string&,
127126
const bid*, Nullable<bool> ssDefiner);
128127
static void scan_partners(thread_db*, jrd_rel*);
@@ -5523,7 +5522,7 @@ void MetadataCache::runDBTriggers(thread_db* tdbb, TriggerAction action)
55235522
}
55245523

55255524
// Find an inactive incarnation of a system request. If necessary, clone it.
5526-
jrd_req* MetadataCache::findSystemRequest(thread_db* tdbb, USHORT id, InternalRequest which)
5525+
Request* MetadataCache::findSystemRequest(thread_db* tdbb, USHORT id, InternalRequest which)
55275526
{
55285527
static const int MAX_RECURSION = 100;
55295528

@@ -5533,7 +5532,7 @@ jrd_req* MetadataCache::findSystemRequest(thread_db* tdbb, USHORT id, InternalRe
55335532

55345533
fb_assert(which == IRQ_REQUESTS || which == DYN_REQUESTS);
55355534

5536-
JrdStatement* statement = (which == IRQ_REQUESTS ? mdc_internal[id] : mdc_dyn_req[id]);
5535+
Statement* statement = (which == IRQ_REQUESTS ? mdc_internal[id] : mdc_dyn_req[id]);
55375536

55385537
if (!statement)
55395538
return NULL;
@@ -5549,7 +5548,7 @@ jrd_req* MetadataCache::findSystemRequest(thread_db* tdbb, USHORT id, InternalRe
55495548
// Msg363 "request depth exceeded. (Recursive definition?)"
55505549
}
55515550

5552-
jrd_req* clone = statement->getRequest(tdbb, n);
5551+
Request* clone = statement->getRequest(tdbb, n);
55535552

55545553
if (!(clone->req_flags & (req_active | req_reserved)))
55555554
{
@@ -5803,10 +5802,10 @@ void Trigger::compile(thread_db* tdbb)
58035802
statement->triggerInvoker = att->getUserId(owner);
58045803

58055804
if (sysTrigger)
5806-
statement->flags |= JrdStatement::FLAG_SYS_TRIGGER;
5805+
statement->flags |= Statement::FLAG_SYS_TRIGGER;
58075806

58085807
if (flags & TRG_ignore_perm)
5809-
statement->flags |= JrdStatement::FLAG_IGNORE_PERM;
5808+
statement->flags |= Statement::FLAG_IGNORE_PERM;
58105809
}
58115810
}
58125811

src/jrd/met.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class jrd_prc : public Routine
173173

174174
virtual SLONG getSclType() const
175175
{
176-
return SCL_object_procedure;
176+
return obj_procedure;
177177
}
178178

179179
virtual void releaseFormat()
@@ -282,7 +282,7 @@ class MetadataCache : public Firebird::PermanentStorage
282282

283283
~MetadataCache();
284284

285-
jrd_req* findSystemRequest(thread_db* tdbb, USHORT id, InternalRequest which);
285+
Request* findSystemRequest(thread_db* tdbb, USHORT id, InternalRequest which);
286286

287287
void releaseIntlObjects(thread_db* tdbb); // defined in intl.cpp
288288
void destroyIntlObjects(thread_db* tdbb); // defined in intl.cpp
@@ -300,7 +300,7 @@ class MetadataCache : public Firebird::PermanentStorage
300300
void releaseTrigger(thread_db* tdbb, USHORT triggerId, const MetaName& name);
301301
TrigVectorPtr* getTriggers(USHORT triggerId);
302302

303-
void cacheRequest(InternalRequest which, USHORT id, JrdStatement* stmt)
303+
void cacheRequest(InternalRequest which, USHORT id, Statement* stmt)
304304
{
305305
if (which == IRQ_REQUESTS)
306306
mdc_internal[id] = stmt;
@@ -426,8 +426,8 @@ class MetadataCache : public Firebird::PermanentStorage
426426
HazardArray<Function> mdc_functions; // User defined functions
427427
HazardArray<Generator> mdc_generators;
428428

429-
Firebird::Array<JrdStatement*> mdc_internal; // internal statements
430-
Firebird::Array<JrdStatement*> mdc_dyn_req; // internal dyn statements
429+
Firebird::Array<Statement*> mdc_internal; // internal statements
430+
Firebird::Array<Statement*> mdc_dyn_req; // internal dyn statements
431431

432432
Firebird::Array<CharSetContainer*> mdc_charsets; // intl character set descriptions
433433
Firebird::GenericMap<Firebird::Pair<Firebird::Left<

src/jrd/tra.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
#include "../jrd/req.h"
3838
#include "../jrd/exe.h"
3939
#include "../jrd/extds/ExtDS.h"
40-
#include "../jrd/rse.h"
4140
#include "../jrd/met.h"
4241
#include "../jrd/intl_classes.h"
4342
#include "../common/ThreadStart.h"

src/jrd/trace/TraceObjects.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,11 +706,12 @@ const char* TraceStatusVectorImpl::getText()
706706
return m_error.c_str();
707707
}
708708

709-
TraceProcedureImpl::TraceProcedureImpl(jrd_req* request, Firebird::PerformanceInfo* perf) :
709+
TraceProcedureImpl::TraceProcedureImpl(Request* request, Firebird::PerformanceInfo* perf) :
710710
m_request(request),
711711
m_perf(perf),
712712
m_inputs(*getDefaultMemoryPool(), request->req_proc_caller, request->req_proc_inputs),
713713
m_name(m_request->getStatement()->procedure->getName().toString())
714714
{}
715715

716+
716717
} // namespace Jrd

src/jrd/trace/TraceObjects.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -402,12 +402,7 @@ class TraceProcedureImpl :
402402
public Firebird::AutoIface<Firebird::ITraceProcedureImpl<TraceProcedureImpl, Firebird::CheckStatusWrapper> >
403403
{
404404
public:
405-
TraceProcedureImpl(Request* request, Firebird::PerformanceInfo* perf) :
406-
m_request(request),
407-
m_perf(perf),
408-
m_inputs(*getDefaultMemoryPool(), request->req_proc_caller, request->req_proc_inputs),
409-
m_name(m_request->getStatement()->procedure->getName().toString())
410-
{}
405+
TraceProcedureImpl(Request* request, Firebird::PerformanceInfo* perf);
411406

412407
// TraceProcedure implementation
413408
const char* getProcName()

0 commit comments

Comments
 (0)