[mapserver-commits] r12821 - trunk/mapserver/mapcache/src

svn at osgeo.org svn at osgeo.org
Mon Nov 28 11:42:19 EST 2011


Author: tbonfort
Date: 2011-11-28 08:42:19 -0800 (Mon, 28 Nov 2011)
New Revision: 12821

Modified:
   trunk/mapserver/mapcache/src/cache_sqlite.c
Log:
fix typo in sqlite has_tile statements


Modified: trunk/mapserver/mapcache/src/cache_sqlite.c
===================================================================
--- trunk/mapserver/mapcache/src/cache_sqlite.c	2011-11-28 15:29:45 UTC (rev 12820)
+++ trunk/mapserver/mapcache/src/cache_sqlite.c	2011-11-28 16:42:19 UTC (rev 12821)
@@ -343,7 +343,7 @@
    cache->create_stmt.sql = apr_pstrdup(ctx->pool,
          "create table if not exists tiles(x integer, y integer, z integer, data blob, dim text, ctime datetime, atime datetime, hitcount integer default 0, primary key(x,y,z,dim))");
    cache->exists_stmt.sql = apr_pstrdup(ctx->pool,
-         "select 1 from tiles where x=?:x and y=:y and z=:z and dim=:dim");
+         "select 1 from tiles where x=:x and y=:y and z=:z and dim=:dim");
    cache->get_stmt.sql = apr_pstrdup(ctx->pool,
          "select data,strftime(\"%s\",ctime) from tiles where x=:x and y=:y and z=:z and dim=:dim");
    cache->set_stmt.sql = apr_pstrdup(ctx->pool,
@@ -366,7 +366,7 @@
    cache->create_stmt.sql = apr_pstrdup(ctx->pool,
          "CREATE TABLE  IF NOT EXISTS tiles (zoom_level integer, tile_column integer, tile_row integer, tile_data blob, primary key(tile_row, tile_column, zoom_level)); create table if not exists metadata(name text, value text);");
    cache->exists_stmt.sql = apr_pstrdup(ctx->pool,
-         "select 1 from tiles where tile_column=?:x and tile_row=:y and zoom_level=:z");
+         "select 1 from tiles where tile_column=:x and tile_row=:y and zoom_level=:z");
    cache->get_stmt.sql = apr_pstrdup(ctx->pool,
          "select tile_data from tiles where tile_column=:x and tile_row=:y and zoom_level=:z");
    cache->set_stmt.sql = apr_pstrdup(ctx->pool,



More information about the mapserver-commits mailing list