diff --git a/src/interfaces/odbc/parse.c b/src/interfaces/odbc/parse.c
index a544f26d338f50dc90579dc4f25e8ec09a15e970..b2661d5379d5c8f0366e1a639eedd526de13689f 100644
--- a/src/interfaces/odbc/parse.c
+++ b/src/interfaces/odbc/parse.c
@@ -605,9 +605,9 @@ parse_statement(StatementClass *stmt)
 				if (delim == ',')
 				{
 					mylog("in_dot: got comma\n");
-					in_dot = FALSE;
 					in_field = FALSE;
 				}
+				in_dot = FALSE;
 				continue;
 			}