Skip to content

Commit

Permalink
Merge pull request #237 from NickNevzorov/master
Browse files Browse the repository at this point in the history
Unstable operation with a large number of connections
  • Loading branch information
irodushka authored Dec 17, 2024
2 parents f17258f + df55cb7 commit 21ff6e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions IscDbc/Attachment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ static char databaseInfoItems [] = {
isc_info_db_id,
isc_info_db_sql_dialect,
isc_info_base_level,
isc_info_user_names,
isc_info_ods_version,
isc_info_firebird_version,
isc_info_version,
isc_info_page_size,
isc_info_user_names,
isc_info_end
};

Expand Down Expand Up @@ -357,7 +357,7 @@ void Attachment::openDatabase(const char *dbName, Properties *properties)

if( ( check_status.getState() & IStatus::STATE_ERRORS ) == 0 )
{
for (auto p = result; p < result + sizeof (result) && *p != isc_info_end;)
for (auto p = result; p < result + sizeof (result) && *p != isc_info_end && *p != isc_info_truncated;)
{
char item = *p++;
int length = GDS->_vax_integer (p, 2);
Expand Down
2 changes: 1 addition & 1 deletion WriteBuildNo.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
// Note - there must be two tabs between BUILDNUM_VERSION and
// the actual number, otherwise the makefile for linux will not
// pick up the value.
#define BUILDNUM_VERSION 15
#define BUILDNUM_VERSION 16

0 comments on commit 21ff6e0

Please sign in to comment.