diff --git a/Language/SQL/SimpleSQL/Lex.hs b/Language/SQL/SimpleSQL/Lex.hs
--- a/Language/SQL/SimpleSQL/Lex.hs
+++ b/Language/SQL/SimpleSQL/Lex.hs
@@ -898,8 +898,9 @@
   tokensLength Proxy xs = sum (tokenLength <$> xs)
 
 instance TraversableStream SQLStream where
-  reachOffset o M.PosState {..} =
-    ( Just (prefix ++ restOfLine)
+    -- I have no idea what all this is doing
+  reachOffset o _x@(M.PosState {..}) =
+    ( Just $ actualLine
     , PosState
         { pstateInput = SQLStream
             { sqlStreamInput = postStr
@@ -912,6 +913,11 @@
         }
     )
     where
+      maybeitsthefullsource = sqlStreamInput pstateInput
+      targetLineNo = M.unPos $ sourceLine newSourcePos
+      actualLine = case drop (targetLineNo - 1) $ lines maybeitsthefullsource of
+          (x:_) -> x
+          [] -> "<empty line>"
       prefix =
         if sameLine
           then pstateLinePrefix ++ preLine
@@ -930,7 +936,6 @@
         case NE.nonEmpty pre of
           Nothing -> 0
           Just nePre -> tokensLength pxy nePre
-      restOfLine = takeWhile (/= '\n') postStr
 
 pxy :: Proxy SQLStream
 pxy = Proxy
diff --git a/changelog b/changelog
--- a/changelog
+++ b/changelog
@@ -1,5 +1,5 @@
-0.7.0
-	support autoincrement for sqlite
+0.7.1   fix error message source quoting
+0.7.0   support autoincrement for sqlite
 	support table constraints without separating comma for sqlite
 	switch source from literate to regular haskell
 	use prettyprinter lib instead of pretty
diff --git a/simple-sql-parser.cabal b/simple-sql-parser.cabal
--- a/simple-sql-parser.cabal
+++ b/simple-sql-parser.cabal
@@ -1,12 +1,10 @@
 cabal-version:       2.2
 
 name:                simple-sql-parser
-version:             0.7.0
+version:             0.7.1
 synopsis:            A parser for SQL.
 
-description:
-
-                     A parser for SQL. Parses most SQL:2011
+description:         A parser for SQL. Parses most SQL:2011
                      queries, non-query DML, DDL, access control and
                      transaction management syntax. Please see the
                      homepage for more information
