8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 00:03:02 +01:00
This commit is contained in:
asfernandes 2008-02-26 02:23:28 +00:00
parent c0adcd8258
commit 312a391d78
10 changed files with 16 additions and 14 deletions

View File

@ -242,7 +242,7 @@ EXPORTS
isc_sqlcode @165
isc_sql_interprete @164
isc_sqlcode_s @278
fb_sqlstate
fb_sqlstate @279
; Event functions

View File

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

View File

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

View File

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

View File

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