FoundationDB/sql-parser — pull request #162 by MMcM (2014-12-26 21:39:48+00:00)
Title: Initialize parser more carefully

The backpointer set at line 202 of the diff below might not be soon enough if the needed by the very first token in the ctor called from line 196.

Instead, always initialize with an empty stream, which will then init . Then set the real stream after everything is set and as would happen when parsing subsequent statements with the same parser.