Skip to content

Commit

Permalink
fix:inserting failure when the values contain 'value' (#2932)
Browse files Browse the repository at this point in the history
* fix:inserting failure when the values contain 'value'

* refactor: another fix solution

* refactor: amazing solution

---------

Co-authored-by: 劲松 <[email protected]>
  • Loading branch information
caogaoshuai and 劲松 authored Aug 11, 2023
1 parent 73d153c commit e8cb2bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ case class SinkRequest(records: util.List[String], var attemptCounter: Int = 0)
Pattern.compile("(insert\\s+into|update|delete)\\s+(.*?)(\\(|\\s+)", Pattern.CASE_INSENSITIVE)

private[this] lazy val INSERT_REGEXP =
Pattern.compile("^(.*)\\s+(values|value)(.*)", Pattern.CASE_INSENSITIVE)
Pattern.compile("^(.*?)\\s+(values|value)(.*)", Pattern.CASE_INSENSITIVE)

lazy val sqlStatement: String = {
val prefixMap: Map[String, List[String]] = Map[String, List[String]]()
Expand Down

0 comments on commit e8cb2bc

Please sign in to comment.