pkg

Check-in [1d39bc7cc4]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Prepare != run.
Timelines: family | ancestors | descendants | both | trunk | gsoc2013
Files: files | file ages | folders
SHA1: 1d39bc7cc441f0ebae138a1dee89258a7ff9042b
User & Date: vsevolod@highsecure.ru 2014-05-30 11:44:29
Context
2014-05-30
22:04
Support libldns. We want to avoid hardcoded dependencies on FreeBSD. DNS functions should have some alternative to FreeBSD specific resolver. check-in: 876c8a2b4a user: vsevolod@highsecure.ru tags: trunk, gsoc2013
11:44
Prepare != run. check-in: 1d39bc7cc4 user: vsevolod@highsecure.ru tags: trunk, gsoc2013
11:08
Improve speed of manifestdigest recalculation. check-in: 7ff6c8bcf3 user: vsevolod@highsecure.ru tags: trunk, gsoc2013
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to libpkg/pkgdb.c.

2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
	assert(db != NULL);

	if (!db->prstmt_initialized) {
		sqlite = db->sqlite;

		for (i = 0; i < PRSTMT_LAST; i++)
		{
			pkg_debug(4, "Pkgdb: running '%s'", SQL(i));
			ret = sqlite3_prepare_v2(sqlite, SQL(i), -1, &STMT(i), NULL);
			if (ret != SQLITE_OK) {
				ERROR_SQLITE(sqlite, SQL(i));
				return (EPKG_FATAL);
			}
		}
		db->prstmt_initialized = true;







|







2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
	assert(db != NULL);

	if (!db->prstmt_initialized) {
		sqlite = db->sqlite;

		for (i = 0; i < PRSTMT_LAST; i++)
		{
			pkg_debug(4, "Pkgdb: preparing statement '%s'", SQL(i));
			ret = sqlite3_prepare_v2(sqlite, SQL(i), -1, &STMT(i), NULL);
			if (ret != SQLITE_OK) {
				ERROR_SQLITE(sqlite, SQL(i));
				return (EPKG_FATAL);
			}
		}
		db->prstmt_initialized = true;