https://github.com/SQLDroid/SQLDroid/pull/38

This time copying from https://bitbucket.org/xerial/sqlite-jdbc (which
is Apache licence).