Hmm.  That's actually a very good question.  I'll have to read some database/sql code and come back to you on that one.