1. Taro L. Saito
  2. sqlite-jdbc
  3. Issues
Issue #41 wontfix

SQLite Backup command has wrong Regular Expression

Grace Batumbya
created an issue

(From https://groups.google.com/d/topic/xerial/QQSVhx1IWqk/discussion)


in version sqlite-jdbc-3.7.2 ExtendedCommand class line 61 in package org.sqlite, there is a problem with the regular expression when not supplying a database (default should be main). It assumes two whitespaces between "backup" and "to" if db is not given:


Problem is here: "backup(___\\s___+(\"[^\"]*\"|'[^\']*\'|\\S+))?___\\s___+to\\s+(\"[^\"]*\"|'[^\']*\'|\\S+)"

One of the occurences should be optional (pull the second one into the second group and trim the result before quatation removal).

Cheers, Daniel

Comments (1)

  1. Log in to comment