[jan] Make SQL state backend compatible with Oracle.