View | Details | Raw Unified | Return to bug 269966 | Differences between
and this patch

Collapse All | Expand All

(-)vnstat-2.10/src/dbsql.c (+8 lines)
Lines 74-79 int db_open(const int createifnotfound, const int read Link Here
74
			printf("Database \"%s\" open (ro: %d)\n", dbfilename, readonly);
74
			printf("Database \"%s\" open (ro: %d)\n", dbfilename, readonly);
75
	}
75
	}
76
76
77
	rc = sqlite3_db_config(db, (SQLITE_DBCONFIG_DQS_DDL | SQLITE_DBCONFIG_DQS_DML), 0, (void*)0);
78
	if (rc) {
79
		db_errcode = rc;
80
		if (debug)
81
			printf("Error (debug): Can't set DQS on connection to \"%s\": %s\n", dbfilename, sqlite3_errmsg(db));
82
		return 0;
83
	}
84
77
	if (createdb) {
85
	if (createdb) {
78
#ifndef CHECK_VNSTAT
86
#ifndef CHECK_VNSTAT
79
		if (!spacecheck(cfg.dbdir)) {
87
		if (!spacecheck(cfg.dbdir)) {

Return to bug 269966