Skip to content

Commit 7a44758

Browse files
committed
Fixed porting error
1 parent f9a11a2 commit 7a44758

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dsql/dsql.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ using namespace Firebird;
8686
static ULONG get_request_info(thread_db*, DsqlRequest*, ULONG, UCHAR*);
8787
static dsql_dbb* init(Jrd::thread_db*, Jrd::Attachment*);
8888
static DsqlRequest* prepareRequest(thread_db*, dsql_dbb*, jrd_tra*, ULONG, const TEXT*, USHORT, unsigned, bool);
89-
static DsqlRequest* safePrepareRequest(thread_db*, dsql_dbb*, jrd_tra*, ULONG, const TEXT*, USHORT, bool);
89+
static DsqlRequest* safePrepareRequest(thread_db*, dsql_dbb*, jrd_tra*, ULONG, const TEXT*, USHORT, unsigned, bool);
9090
static RefPtr<DsqlStatement> prepareStatement(thread_db*, dsql_dbb*, jrd_tra*, ULONG, const TEXT*, USHORT,
9191
unsigned, bool, ntrace_result_t* traceResult);
9292
static UCHAR* put_item(UCHAR, const USHORT, const UCHAR*, UCHAR*, const UCHAR* const);
@@ -443,15 +443,15 @@ static dsql_dbb* init(thread_db* tdbb, Jrd::Attachment* attachment)
443443

444444
// Use SEH frame when preparing user requests to catch possible stack overflows
445445
static DsqlRequest* safePrepareRequest(thread_db* tdbb, dsql_dbb* database, jrd_tra* transaction,
446-
ULONG textLength, const TEXT* text, USHORT clientDialect, bool isInternalRequest)
446+
ULONG textLength, const TEXT* text, USHORT clientDialect, unsigned prepareFlags, bool isInternalRequest)
447447
{
448448
if (isInternalRequest)
449-
return prepareRequest(tdbb, database, transaction, textLength, text, clientDialect, true);
449+
return prepareRequest(tdbb, database, transaction, textLength, text, clientDialect, prepareFlags, true);
450450

451451
#ifdef WIN_NT
452452
START_CHECK_FOR_EXCEPTIONS(NULL);
453453
#endif
454-
return prepareRequest(tdbb, database, transaction, textLength, text, clientDialect, false);
454+
return prepareRequest(tdbb, database, transaction, textLength, text, clientDialect, prepareFlags, false);
455455

456456
#ifdef WIN_NT
457457
END_CHECK_FOR_EXCEPTIONS(NULL);

0 commit comments

Comments
 (0)