8
0
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:
dimitr 2013-08-21 09:17:10 +00:00
parent 4f094c7fd8
commit a4ec331d3d
5 changed files with 0 additions and 20 deletions

View File

@ -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;
}

View File

@ -219,13 +219,6 @@ void GEN_port(DsqlCompilerScratch* dsqlScratch, dsql_msg* message)
GEN_descriptor(dsqlScratch, &parameter->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);

View File

@ -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)

View File

@ -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;
}

View File

@ -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 {