Made SQL builder ColumnName regex more general
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
753554e281
commit
a34742b59a
+1
-1
@@ -35,7 +35,7 @@ import java.util.regex.Pattern;
|
|||||||
*/
|
*/
|
||||||
public class SQLBuilder {
|
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
|
// This holds the query string, with the '?' placeholders, but no argument values
|
||||||
private final StringBuilder sb = new StringBuilder();
|
private final StringBuilder sb = new StringBuilder();
|
||||||
|
|||||||
Reference in New Issue
Block a user