Yast: “SQL logic error”

A few moments ago I tried to update some programs under openSuse 10.3, but got an error from Yast: "SQL logic error or missing database". But I was lucky, because this error can be corrected easily with this few commands (as root):

rm /var/cache/zypp/zypp.db
zypper refresh