Skip to content

Commit

Permalink
Log key names for diagnostic purposes to aid in things like writing
Browse files Browse the repository at this point in the history
subselect routers
  • Loading branch information
mmichalek committed Feb 15, 2017
1 parent 7a577f1 commit 2058478
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -236,7 +236,9 @@ public static String substituteNamedParameters(ParsedSql parsedSql,
actualSql.append("?");
}
} else {
throw new InvalidSqlException("The parameter map passed in did not contain a key for the named parameter %s in the SQL:\n %s" , paramName, originalSql);
throw new InvalidSqlException("The parameter map passed in did not contain "
+ "a key for the named parameter %s. \nKeys: %s \nSQL: %s",
paramName, paramSource != null ? paramSource.keySet() : "null", originalSql);
}
lastIndex = endIndex;
}
Expand Down

0 comments on commit 2058478

Please sign in to comment.