impossibl/pgjdbc-ng — pull request #110 by brettwooldridge (2014-10-30 07:41:13+00:00)
Title: Hand written SQL-parser, based off of former regexes.

The diffs are probably not that useful because of the size of the change. I recommend looking at the SQLText.java file directly, it's more readable than the diff.

All tests are passing, plus an additional test from bug #65 added.

Note, this bring us back to "parsing parity" with the existing code. However, as I was researching the PostgreSQL syntax, I noticed quite a few additions between PostgreSQL 8.x and 9.x. Things like binary constants and unicode constants. I do not know whether the parser handles these effective (former or current), but probably additional tests (and parsing) will need to be done in the future to cover these cases.