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

Revert "Fix warnings."

This reverts commit 850e21a34c.
This commit is contained in:
Adriano dos Santos Fernandes 2021-12-24 11:54:52 -03:00
parent 68a7e88572
commit 00218503d6
3 changed files with 15 additions and 3 deletions

View File

@ -234,6 +234,8 @@ FB_UDR_BEGIN_TRIGGER(replicate_persons)
"select data_source from replicate_config where name = ?",
SQL_DIALECT_CURRENT, NULL), status, statusVector);
const char* table = metadata->getTriggerTable(status);
// Skip the first exclamation point, separating the module name and entry point.
const char* info = strchr(metadata->getEntryPoint(status), '!');

View File

@ -63,6 +63,13 @@ using namespace Firebird;
DATABASE DB = STATIC "yachts.lnk";
static const UCHAR blr_bpb[] =
{
isc_bpb_version1,
isc_bpb_source_type, 1, isc_blob_blr,
isc_bpb_target_type, 1, isc_blob_blr
};
static void convert_dtype(TypeClause*, SSHORT);
static void free_relation(dsql_rel*);

View File

@ -238,6 +238,7 @@ inline void check_gbak_cheating_insupd(thread_db* tdbb, const jrd_rel* relation,
inline void check_gbak_cheating_delete(thread_db* tdbb, const jrd_rel* relation)
{
const Attachment* const attachment = tdbb->getAttachment();
const jrd_tra* const transaction = tdbb->getTransaction();
if (relation->isSystem() && attachment->isGbak())
{
@ -2526,6 +2527,8 @@ bool VIO_get_current(thread_db* tdbb,
**************************************/
SET_TDBB(tdbb);
Attachment* const attachment = tdbb->getAttachment();
#ifdef VIO_DEBUG
jrd_rel* relation = rpb->rpb_relation;
VIO_trace(DEBUG_TRACE,
@ -5192,12 +5195,12 @@ static void list_staying_fast(thread_db* tdbb, record_param* rpb, RecordStack& s
}
}
///const TraNumber oldest_active = tdbb->getTransaction()->tra_oldest_active;
const TraNumber oldest_active = tdbb->getTransaction()->tra_oldest_active;
while (temp.rpb_b_page)
{
///ULONG page = temp.rpb_page = temp.rpb_b_page;
///USHORT line = temp.rpb_line = temp.rpb_b_line;
ULONG page = temp.rpb_page = temp.rpb_b_page;
USHORT line = temp.rpb_line = temp.rpb_b_line;
temp.rpb_record = NULL;
if (temp.rpb_flags & rpb_delta)