If you have a (Sybase) stored procedure that does "select * from ... where ..." how does that work? When is the * expanded to all the columns? At sproc creation time, at sproc compilation time, execution time, etc?
I am using a sproc like that which is not returning one of the columns and it makes me think that it is at sproc creation time but I can't find any references to confirm that.
Edit: I have verified that recompiling a sproc doesn't cause the * to be re-evaluated which pretty much confirms my initial thoughts but still looking for a reference where this behavior is documented.