Skip to content

Conversation

@chiahan1123
Copy link

When the database close, FlushAll will be called, causing the following to be ran:

for _, in := range d.batchInserts {
  if err := d.flushInsert(in); err != nil {
    return err
  }
}

If the in does not contain any pending inserts, the following error will be thrown:

Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Due to the way query is constructed. Therefore, we can simply just ignore in with no more pending inserts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant