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

Small optimization

This commit is contained in:
asfernandes 2008-03-13 19:50:13 +00:00
parent b81fc4919f
commit 19a5b0afd2
3 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ bool ResultSet::isNull(int param)
}
dsc ResultSet::getDesc(int param)
dsc& ResultSet::getDesc(int param)
{
return stmt->values[(param - 1) * 2];
}

View File

@ -44,7 +44,7 @@ public:
public:
bool fetch(thread_db* tdbb);
bool isNull(int param);
dsc getDesc(int param);
dsc& getDesc(int param);
private:
PreparedStatement* stmt;

View File

@ -170,7 +170,7 @@ bool ExecuteStatement::fetch(thread_db* tdbb, jrd_nod** jrdVar)
for (int i = 0; i < varCount; i++)
{
dsc desc = resultSet->getDesc(i + 1);
dsc& desc = resultSet->getDesc(i + 1);
bool nullFlag = resultSet->isNull(i + 1);
EXE_assignment(tdbb, jrdVar[i], &desc, nullFlag, NULL, NULL);
}