Показать сообщение отдельно
Старый 30.03.2010, 18:26   #1  
ist is offline
ist
Участник
 
60 / 10 (1) +
Регистрация: 29.07.2007
exist method on temporary table
Hi,
I'm trying to make exist method on temporary table something like this...
Код:
static boolean exist(MyTempTable _tempTable,
                             RefTableId      _tableId,
                             RefRecId        _recId)
{
    return _tableid && _recId && (select RecId from _tempTable
                                                   where _tempTable.TableNum = _tableId
                                                       && _tempTable.RecordNo = _recId
             ).RecId != 0;
}
Just like find() methods on a temp table, I pass the temporary table reference as parameter, but compiler throw an error "The table _tempTable does not exist".

Any ideas what's the problem?