[Bug 3252] Regression in database program that used to work with 20050524