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

Correction - thanks to Claudio

This commit is contained in:
asfernandes 2008-05-21 15:22:22 +00:00
parent 2a1e1c42ef
commit 725a100324

View File

@ -10603,7 +10603,7 @@ void DSQL_pretty(const dsql_nod* node, int column)
TEXT s[64]; TEXT s[64];
const dsql_str* string; const dsql_str* string;
const TEXT* verb; Firebird::string verb;
const dsql_nod* const* ptr = node->nod_arg; const dsql_nod* const* ptr = node->nod_arg;
const dsql_nod* const* end = ptr + node->nod_count; const dsql_nod* const* end = ptr + node->nod_count;
Firebird::Array<dsql_nod*> subNodes; Firebird::Array<dsql_nod*> subNodes;
@ -11639,14 +11639,10 @@ void DSQL_pretty(const dsql_nod* node, int column)
break; break;
case nod_class_node: case nod_class_node:
{ reinterpret_cast<Node*>(node->nod_arg[0])->print(verb, subNodes);
Firebird::string s; ptr = subNodes.begin();
reinterpret_cast<Node*>(node->nod_arg[0])->print(s, subNodes); end = subNodes.end();
trace_line("%s\n", s.c_str()); break;
ptr = subNodes.begin();
end = subNodes.end();
}
return;
default: default:
sprintf(s, "unknown type %d", node->nod_type); sprintf(s, "unknown type %d", node->nod_type);
@ -11655,18 +11651,17 @@ void DSQL_pretty(const dsql_nod* node, int column)
if (node->nod_desc.dsc_dtype) { if (node->nod_desc.dsc_dtype) {
trace_line("%s%s (%d,%d,%p)\n", trace_line("%s%s (%d,%d,%p)\n",
buffer, verb, buffer, verb.c_str(),
node->nod_desc.dsc_dtype, node->nod_desc.dsc_dtype,
node->nod_desc.dsc_length, node->nod_desc.dsc_address); node->nod_desc.dsc_length, node->nod_desc.dsc_address);
} }
else { else
trace_line("%s%s\n", buffer, verb); trace_line("%s%s\n", buffer, verb.c_str());
}
++column; ++column;
while (ptr < end) { while (ptr < end)
DSQL_pretty(*ptr++, column); DSQL_pretty(*ptr++, column);
}
return; return;
} }