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

Add missing namespace

This commit is contained in:
Dmitry Yemanov 2023-11-09 09:15:37 +03:00
parent a30cb9566d
commit ca6f63261c
14 changed files with 36 additions and 35 deletions

View File

@ -29,6 +29,7 @@
#ifndef CLASSES_TRISTATE_H
#define CLASSES_TRISTATE_H
namespace Firebird {
class TriState
{
@ -129,5 +130,6 @@ inline bool TriState::toggle()
return true;
}
} // namespace Firebird
#endif // CLASSES_TRISTATE_H

View File

@ -482,7 +482,7 @@ public:
bool privateScope;
bool preserveDefaults;
SLONG udfReturnPos;
TriState ssDefiner;
Firebird::TriState ssDefiner;
};
@ -616,7 +616,7 @@ public:
MetaName packageOwner;
bool privateScope;
bool preserveDefaults;
TriState ssDefiner;
Firebird::TriState ssDefiner;
};
@ -700,7 +700,7 @@ public:
MetaName name;
MetaName relationName;
std::optional<FB_UINT64> type;
TriState active;
Firebird::TriState active;
std::optional<int> position;
NestConst<ExternalClause> external;
Firebird::string source;
@ -990,7 +990,7 @@ public:
NestConst<ValueSourceClause> setDefault;
MetaName renameTo;
Firebird::AutoPtr<dsql_fld> type;
TriState notNullFlag; // true = NOT NULL / false = NULL
Firebird::TriState notNullFlag; // true = NOT NULL / false = NULL
};
@ -1214,7 +1214,7 @@ public:
MetaName identitySequence;
std::optional<IdentityType> identityType;
std::optional<USHORT> collationId;
TriState notNullFlag; // true = NOT NULL / false = NULL
Firebird::TriState notNullFlag; // true = NOT NULL / false = NULL
std::optional<USHORT> position;
Firebird::string defaultSource;
Firebird::ByteChunk defaultValue;
@ -1553,8 +1553,8 @@ public:
NestConst<RelationSourceNode> dsqlNode;
MetaName name;
Firebird::Array<NestConst<Clause> > clauses;
TriState ssDefiner;
TriState replicationState;
Firebird::TriState ssDefiner;
Firebird::TriState replicationState;
};
@ -1726,9 +1726,9 @@ public:
MetaName relation;
Firebird::ObjectsArray<MetaName> columns;
TriState unique;
TriState descending;
TriState inactive;
Firebird::TriState unique;
Firebird::TriState descending;
Firebird::TriState inactive;
SSHORT type;
bid expressionBlr;
bid expressionSource;
@ -2219,8 +2219,8 @@ public:
Firebird::string* lastName;
MetaName* plugin;
Firebird::string* comment;
TriState adminRole;
TriState active;
Firebird::TriState adminRole;
Firebird::TriState active;
Mode mode;
void addProperty(MetaName* pr, Firebird::string* val = NULL)
@ -2461,7 +2461,7 @@ public:
Firebird::Array<NestConst<DbFileClause> > files;
MetaName cryptPlugin;
MetaName keyName;
TriState ssDefiner;
Firebird::TriState ssDefiner;
Firebird::Array<MetaName> pubTables;
};

View File

@ -267,7 +267,7 @@ public:
print(s, *array);
}
void print(const Firebird::string& s, const TriState& triState)
void print(const Firebird::string& s, const Firebird::TriState& triState)
{
if (triState.isAssigned())
print(s, triState.asBool());

View File

@ -110,7 +110,7 @@ public:
Firebird::Array<Item>* items;
Firebird::SortedArray<MetaName> functionNames;
Firebird::SortedArray<MetaName> procedureNames;
TriState ssDefiner;
Firebird::TriState ssDefiner;
private:
MetaName owner;

View File

@ -261,13 +261,13 @@ private:
}
}
void setClause(TriState& clause, const char* duplicateMsg, bool value)
void setClause(Firebird::TriState& clause, const char* duplicateMsg, bool value)
{
checkDuplicateClause(clause, duplicateMsg);
clause = value;
}
void setClause(TriState& clause, const char* duplicateMsg, const TriState& value)
void setClause(Firebird::TriState& clause, const char* duplicateMsg, const Firebird::TriState& value)
{
if (value.isAssigned())
{
@ -322,7 +322,7 @@ private:
return clause.hasData();
}
bool isDuplicateClause(const TriState& clause)
bool isDuplicateClause(const Firebird::TriState& clause)
{
return clause.isAssigned();
}

View File

@ -1340,7 +1340,7 @@ public:
public:
NestConst<SelectExprNode> selectExpr;
NestConst<RseNode> rse;
TriState optimizeForFirstRows;
Firebird::TriState optimizeForFirstRows;
bool forUpdate = false;
bool withLock = false;
bool skipLocked = false;
@ -1626,12 +1626,12 @@ public:
std::optional<CommitNumber> atSnapshotNumber;
std::optional<unsigned> isoLevel;
std::optional<USHORT> lockTimeout;
TriState readOnly;
TriState wait;
TriState noAutoUndo;
TriState ignoreLimbo;
TriState restartRequests;
TriState autoCommit;
Firebird::TriState readOnly;
Firebird::TriState wait;
Firebird::TriState noAutoUndo;
Firebird::TriState ignoreLimbo;
Firebird::TriState restartRequests;
Firebird::TriState autoCommit;
};
@ -1901,7 +1901,7 @@ public:
virtual void execute(thread_db* tdbb, DsqlRequest* request, jrd_tra** traHandle) const;
public:
TriState optimizeMode;
Firebird::TriState optimizeMode;
};

View File

@ -736,7 +736,7 @@ using namespace Firebird;
{}
std::optional<int> nullableIntVal;
TriState triState;
Firebird::TriState triState;
std::optional<Jrd::TriggerDefinition::SqlSecurity> nullableSqlSecurityVal;
std::optional<Jrd::OverrideClause> nullableOverrideClause;
struct { bool first; bool second; } boolPair;

View File

@ -640,7 +640,7 @@ public:
USHORT att_original_timezone;
USHORT att_current_timezone;
int att_parallel_workers;
TriState att_opt_first_rows;
Firebird::TriState att_opt_first_rows;
PageToBufferMap* att_bdb_cache; // managed in CCH, created in att_pool, freed with it

View File

@ -532,7 +532,7 @@ public:
time_t dbb_linger_end;
Firebird::RefPtr<Firebird::IPluginConfig> dbb_plugin_config;
TriState dbb_repl_state; // replication state
Firebird::TriState dbb_repl_state; // replication state
Lock* dbb_repl_lock; // replication state lock
Firebird::SyncObject dbb_repl_sync;
FB_UINT64 dbb_repl_sequence; // replication sequence

View File

@ -878,7 +878,7 @@ public:
Firebird::Array<NestConst<RecordSourceNode> > rse_relations;
USHORT flags = 0;
USHORT rse_jointype = blr_inner; // inner, left, full
TriState firstRows; // optimize for first rows
Firebird::TriState firstRows; // optimize for first rows
};
class SelectExprNode final : public TypedNode<RecordSourceNode, RecordSourceNode::TYPE_SELECT_EXPR>

View File

@ -264,9 +264,9 @@ public:
TrigVector* rel_post_store; // Post-operation store trigger
prim rel_primary_dpnds; // foreign dependencies on this relation's primary key
frgn rel_foreign_refs; // foreign references to other relations' primary keys
TriState rel_ss_definer;
TriState rel_repl_state; // replication state
Firebird::TriState rel_ss_definer;
Firebird::TriState rel_repl_state; // replication state
Firebird::Mutex rel_drop_mutex;

View File

@ -148,7 +148,7 @@ public:
Firebird::string entryPoint; // External trigger entrypoint
Firebird::string extBody; // External trigger body
ExtEngineManager::Trigger* extTrigger; // External trigger
TriState ssDefiner;
Firebird::TriState ssDefiner;
MetaName owner; // Owner for SQL SECURITY
bool isActive() const;

View File

@ -148,6 +148,6 @@ void MET_store_dependencies(Jrd::thread_db*, Firebird::Array<Jrd::CompilerScratc
const Jrd::jrd_rel*, const Jrd::MetaName&, int, Jrd::jrd_tra*);
int MET_get_linger(Jrd::thread_db*);
TriState MET_get_ss_definer(Jrd::thread_db*);
Firebird::TriState MET_get_ss_definer(Jrd::thread_db*);
#endif // JRD_MET_PROTO_H

View File

@ -31,7 +31,6 @@
#include "../include/fb_blk.h"
#include "../common/classes/array.h"
#include "../common/classes/TriState.h"
#include "../jrd/intl_classes.h"
#include "../jrd/MetaName.h"
#include "../jrd/QualifiedName.h"