Hi
Thank you. I guess we've never used a SQLite path with spaces in it before, otherwise we should have seen this problem. Your solution is fine, though it modifies a const, i.e. path in URL, but I think this is acceptable. Other solutions would be to allow spaces in URL path at creation time or copy URL path at connection time and unescape it then. Neither of these are particularly wanted. So your patch is included and added to the repository and will be part of the next release of libzdb.
Thanks again :)
On May 3, 2011, at 11:56 AM, Jonas Schnelli wrote:
Hi Guys
I've just started using libzdb for a iOS (iPad) project. We use it because one software component has to be written in C (so, ... no use of CoreData or Object-C wrapper!).
I've encountered a problem SQLiteConnection.c. As far as i see it's not possible to have url escaped Path for sqlite (because the path for iOS Simulator has multiple " " (whitespaces)). I've changed line 80 to: const char *path = URL_unescape(URL_getPath(url));