8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 06:43:03 +01:00

bugfix: PLAN wasn't correctly returned. bug probable introduced by c to c++ port.

This commit is contained in:
arnobrinkman 2002-12-29 22:26:35 +00:00
parent 1bb588f5eb
commit 31eea59b1a

View File

@ -31,9 +31,6 @@
* 2002.10.29 Sean Leyne - Removed obsolete "Netware" port * 2002.10.29 Sean Leyne - Removed obsolete "Netware" port
* *
*/ */
/*
$Id: dsql.cpp,v 1.36 2002-12-16 15:37:31 alexpeshkoff Exp $
*/
/************************************************************** /**************************************************************
V4 Multi-threading changes. V4 Multi-threading changes.
@ -1666,14 +1663,17 @@ STATUS GDS_DSQL_SQL_INFO_CPP( STATUS* user_status,
length = length =
get_plan_info(request, (SSHORT) sizeof(buffer), reinterpret_cast<SCHAR**>(&buffer_ptr)); get_plan_info(request, (SSHORT) sizeof(buffer), reinterpret_cast<SCHAR**>(&buffer_ptr));
if (length) if (length) {
info = put_item(item, length, buffer, info, end_info); info = put_item(item, length, buffer_ptr, info, end_info);
}
if (length > sizeof(buffer)) if (length > sizeof(buffer)) {
gds__free(buffer_ptr); gds__free(buffer_ptr);
}
if (!info) if (!info) {
return return_success(); return return_success();
}
} }
else if (!message || else if (!message ||
(item != gds_info_sql_num_variables (item != gds_info_sql_num_variables