mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 00:03:02 +01:00
Misc
This commit is contained in:
parent
c0adcd8258
commit
312a391d78
@ -242,7 +242,7 @@ EXPORTS
|
||||
isc_sqlcode @165
|
||||
isc_sql_interprete @164
|
||||
isc_sqlcode_s @278
|
||||
fb_sqlstate
|
||||
fb_sqlstate @279
|
||||
|
||||
; Event functions
|
||||
|
||||
|
@ -2280,6 +2280,7 @@ void API_ROUTINE fb_sqlstate(char* sqlstate, const ISC_STATUS* status_vector)
|
||||
// step #2, see if we can find a mapping.
|
||||
gdscode = 0;
|
||||
s = status_vector;
|
||||
|
||||
while ((*s != isc_arg_end) && (!have_sqlstate))
|
||||
{
|
||||
if (*s == isc_arg_gds)
|
||||
@ -2328,6 +2329,7 @@ void API_ROUTINE fb_sqlstate(char* sqlstate, const ISC_STATUS* status_vector)
|
||||
}
|
||||
} // while
|
||||
}
|
||||
|
||||
s++;
|
||||
}
|
||||
}
|
||||
|
@ -617,7 +617,6 @@ void ISC_EXPORT isc_sqlcode_s(const ISC_STATUS*,
|
||||
void ISC_EXPORT fb_sqlstate(char*,
|
||||
const ISC_STATUS*);
|
||||
|
||||
|
||||
void ISC_EXPORT isc_sql_interprete(short,
|
||||
ISC_SCHAR*,
|
||||
short);
|
||||
|
@ -296,11 +296,13 @@ void API_ROUTINE perf_get_info(FB_API_HANDLE* handle, PERF* perf)
|
||||
perf->perf_max_memory = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
{
|
||||
const SLONG temp = isc_vax_integer(p, 2);
|
||||
fb_assert(temp <= MAX_SSHORT);
|
||||
p += temp + 2;
|
||||
}
|
||||
|
||||
perf->perf_marks = 0;
|
||||
break;
|
||||
|
||||
|
@ -1366,8 +1366,6 @@ static bool get_merge_join(
|
||||
for (ptr = rsb->rsb_arg, tail = impure->irsb_mrg_rpt; ptr < end;
|
||||
ptr += 2, tail++)
|
||||
{
|
||||
ULONG key[32];
|
||||
|
||||
RecordSource* sort_rsb = *ptr;
|
||||
SortMap* map = (SortMap*) sort_rsb->rsb_arg[0];
|
||||
merge_file* mfb = &tail->irsb_mrg_file;
|
||||
@ -2231,6 +2229,7 @@ static bool get_record(thread_db* tdbb,
|
||||
case rsb_skip:
|
||||
{
|
||||
irsb_skip_n* skip = (irsb_skip_n*) impure;
|
||||
|
||||
switch (mode)
|
||||
{
|
||||
#ifdef SCROLLABLE_CURSORS
|
||||
|
Loading…
Reference in New Issue
Block a user