From: Emmanuel Rodriguez Date: Tue, 12 May 2009 17:56:04 +0000 (+0200) Subject: Using TEXT as the data types for filename and etag X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bad07eae396af53561b52f9fae2bc4ecb237d99a;p=libchamplain Using TEXT as the data types for filename and etag --- diff --git a/champlain/champlain-cache.c b/champlain/champlain-cache.c index 820ea68..37a7e2d 100644 --- a/champlain/champlain-cache.c +++ b/champlain/champlain-cache.c @@ -173,10 +173,10 @@ champlain_cache_init (ChamplainCache *self) goto cleanup; } - sqlite3_exec (priv->data, "CREATE TABLE tiles (filename char(500) PRIMARY KEY, etag CHAR (30), popularity INT DEFAULT 1, size INT DEFAULT 0)", NULL, NULL, &error_msg); + sqlite3_exec (priv->data, "CREATE TABLE tiles (filename TEXT PRIMARY KEY, etag TEXT, popularity INT DEFAULT 1, size INT DEFAULT 0)", NULL, NULL, &error_msg); if (error_msg != NULL) { - DEBUG ("Creating table Etag failed: %s", error_msg); + DEBUG ("Creating table 'tiles' failed: %s", error_msg); sqlite3_free (error_msg); goto cleanup; }