8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 17:23:04 +01:00

The easy fix to the dialect problem

This commit is contained in:
asfernandes 2010-01-03 15:21:13 +00:00
parent ea9514ea7f
commit e8b3caa105

View File

@ -2238,7 +2238,7 @@ static bool modify_index(thread_db* tdbb, SSHORT phase, DeferredWork* work, jrd_
sql << "select" sql << "select"
<< sql("rel.rdb$relation_name,", rdbRelationName) << sql("rel.rdb$relation_name,", rdbRelationName)
<< sql("rel.rdb$relation_type", rdbRelationType) << sql("rel.rdb$relation_type", rdbRelationType)
<< "from rdb$indices idx join rdb$relations rel using (rdb$relation_name)" << "from rdb$indices idx join rdb$relations rel on rel.rdb$relation_name = idx.rdb$relation_name"
<< "where idx.rdb$index_name = " << work->dfw_name; << "where idx.rdb$index_name = " << work->dfw_name;
AutoPreparedStatement ps(attachment->prepareStatement(tdbb, dbb->dbb_sys_trans, sql)); AutoPreparedStatement ps(attachment->prepareStatement(tdbb, dbb->dbb_sys_trans, sql));
AutoResultSet rs(ps->executeQuery(tdbb, dbb->dbb_sys_trans)); AutoResultSet rs(ps->executeQuery(tdbb, dbb->dbb_sys_trans));