Made SQL builder ColumnName regex more general

This commit is contained in:
thesmallstar
2020-03-10 11:36:49 +01:00
committed by Michael Vorburger ⛑️
parent 753554e281
commit a34742b59a
@@ -35,7 +35,7 @@ import java.util.regex.Pattern;
*/
public class SQLBuilder {
private final static Pattern ATOZ = Pattern.compile("[a-z]+");
private final static Pattern ATOZ = Pattern.compile("([a-zA-Z_][a-zA-Z0-9_-]*\\.)?[a-zA-Z_-][a-zA-Z0-9_-]*");
// This holds the query string, with the '?' placeholders, but no argument values
private final StringBuilder sb = new StringBuilder();