mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 00:03:02 +01:00
Small optimization
This commit is contained in:
parent
b81fc4919f
commit
19a5b0afd2
@ -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];
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user