npgsql/Npgsql — pull request #315 by Emill (2014-08-09 17:59:06+00:00)
Title: Fix query parameter processing to more correctly match PostgreSQL's lexer

Fixes all the problems mentioned in #309.
I also separated the "states" of the state machine so lookup of state doesn't have to be executed for every character, which should enhance performance.
I also combined multi-statement identifying into the parameter processing routine so the string doesn't have to be scanned twice.