mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 04:43:03 +01:00
On second thought, I'm removing the artifical message size limit.
This commit is contained in:
parent
4f094c7fd8
commit
a4ec331d3d
@ -1583,9 +1583,6 @@ DmlNode* DeclareSubProcNode::parse(thread_db* tdbb, MemoryPool& pool, CompilerSc
|
||||
format->fmt_length += fmtDesc.dsc_length;
|
||||
}
|
||||
|
||||
if (format->fmt_length > MAX_MESSAGE_SIZE)
|
||||
ERR_post(Arg::Gds(isc_imp_exc) << Arg::Gds(isc_blktoobig));
|
||||
|
||||
DbgInfo* subDbgInfo = NULL;
|
||||
if (csb->csb_dbg_info->subProcs.get(name, subDbgInfo))
|
||||
{
|
||||
@ -5218,9 +5215,6 @@ void MessageNode::setup(thread_db* tdbb, CompilerScratch* csb, USHORT message, U
|
||||
}
|
||||
}
|
||||
|
||||
if (offset > MAX_MESSAGE_SIZE)
|
||||
PAR_error(csb, Arg::Gds(isc_imp_exc) << Arg::Gds(isc_blktoobig));
|
||||
|
||||
format->fmt_length = offset;
|
||||
}
|
||||
|
||||
|
@ -219,13 +219,6 @@ void GEN_port(DsqlCompilerScratch* dsqlScratch, dsql_msg* message)
|
||||
GEN_descriptor(dsqlScratch, ¶meter->par_desc, true);
|
||||
}
|
||||
|
||||
if (offset > MAX_MESSAGE_SIZE)
|
||||
{
|
||||
ERRD_post(Arg::Gds(isc_sqlerr) << Arg::Num(-204) <<
|
||||
Arg::Gds(isc_imp_exc) <<
|
||||
Arg::Gds(isc_blktoobig));
|
||||
}
|
||||
|
||||
message->msg_length = offset;
|
||||
|
||||
dsqlScratch->ports.add(message);
|
||||
|
@ -179,9 +179,6 @@ void Routine::parseMessages(thread_db* tdbb, CompilerScratch* csb, BlrReader blr
|
||||
offset = FB_ALIGN(offset, maxAlignment);
|
||||
}
|
||||
|
||||
if (offset > MAX_MESSAGE_SIZE)
|
||||
status_exception::raise(Arg::Gds(isc_imp_exc) << Arg::Gds(isc_blktoobig));
|
||||
|
||||
format->fmt_length = offset;
|
||||
|
||||
switch (msgNumber)
|
||||
|
@ -97,9 +97,6 @@ BufferedStream::BufferedStream(CompilerScratch* csb, RecordSource* next)
|
||||
format->fmt_length += desc.dsc_length;
|
||||
}
|
||||
|
||||
if (format->fmt_length > MAX_MESSAGE_SIZE)
|
||||
status_exception::raise(Arg::Gds(isc_imp_exc) << Arg::Gds(isc_blktoobig));
|
||||
|
||||
m_format = format;
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,6 @@ public:
|
||||
|
||||
const UCHAR DEFAULT_DOUBLE = dtype_double;
|
||||
const ULONG MAX_RECORD_SIZE = 65535;
|
||||
const ULONG MAX_MESSAGE_SIZE = 10 * 1024 * 1024; // 10MB (just for safety sake)
|
||||
|
||||
namespace Jrd {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user