Fixed patch common DAO functions for pass-by-reference.