added shim for old mysql versions