[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH][merge-tracking]libsvn_fs_util

From: Kamesh Jayachandran <kamesh_at_collab.net>
Date: 2006-09-19 10:54:49 CEST

> I assume that SQLite returns an identifiable error if the database
> doesn't exist when you try to open it, so you could just trap that error
> and create it then:
>
> err = open_database(&handle, ...)
> if (err && err != database_not_found)
> return err;
> if (err)
> create_database(&handle, ...)
>
Unfortunately sqlite3_open never fails for non-existent db rather
creates the empty db.

With regards
Kamesh Jayachandran

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 19 10:54:30 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.