Ticket #1258 (closed). This bug leaked into 0810 via sqlCVS. This change needs to be brought into that tree.