pitfloner
2nd June 2003, 17:03
When I try to compile the following function, the compiler shows me the error "<variable> not declared" for each field declared in the previous select which uses an alias in its declaration.
Does anyone know the reason?
select torigen.*
from tisfc961 torigen
where torigen._index1 = {:etiqueta.origen}
and torigen.stat=1
selectdo
db.retry.point()
select tisfc961.*
from tisfc961 for update
where tisfc961._index1 = {:etiqueta.destino}
selectempty
tisfc961.stat=torigen.stat
tisfc961.expo=torigen.expo
tisfc961.expd=torigen.expd
tisfc961.npre=torigen.npre
db.insert(ttisfc961,db.retry)
commit.transaction()
endselect
endselect
Does anyone know the reason?
select torigen.*
from tisfc961 torigen
where torigen._index1 = {:etiqueta.origen}
and torigen.stat=1
selectdo
db.retry.point()
select tisfc961.*
from tisfc961 for update
where tisfc961._index1 = {:etiqueta.destino}
selectempty
tisfc961.stat=torigen.stat
tisfc961.expo=torigen.expo
tisfc961.expd=torigen.expd
tisfc961.npre=torigen.npre
db.insert(ttisfc961,db.retry)
commit.transaction()
endselect
endselect