Daniel Glaser
unread,Nov 12, 2012, 8:06:31 AM11/12/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to xer...@googlegroups.com
Hi,
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:
Pattern.compile("backup(\\s+(\"[^\"]*\"|'[^\']*\'|\\S+))?\\s+to\\s+(\"[^\"]*\"|'[^\']*\'|\\S+)");
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