Skip to content

Commit 652b764

Browse files
committed
Updated regex
1 parent 5340dbe commit 652b764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private void setPreparedStatementHandle(int handle) {
139139
* Regex for JDBC 'call' escape syntax
140140
*/
141141
private static final Pattern callEscapePattern = Pattern
142-
.compile("^\\s*(?i)\\{(\\s*\\??\\s*=?\\s*)call [^\\(\\)]+\\s*(\\((\\s*\\?\\s*,\\s*)*\\?\\s*\\))?\\s*}");
142+
.compile("^\\s*(?i)\\{(\\s*\\??\\s*=?\\s*)call [^\\(\\)]+\\s*(\\(\\s*\\?\\s*(,\\s*\\?\\s*)*\\))?\\s*}");
143143

144144
/**
145145
* Regex for 'exec' escape syntax

0 commit comments

Comments
 (0)