summaryrefslogtreecommitdiff
path: root/demos/sqlmap-sample/protected/petshop-db
diff options
context:
space:
mode:
authorwei <>2006-04-14 11:23:56 +0000
committerwei <>2006-04-14 11:23:56 +0000
commitf6a5e7589396854e10e023c25237b47e512ff047 (patch)
tree2b313bb8b66869235ee06b9cae2af2f7645cf5c9 /demos/sqlmap-sample/protected/petshop-db
parent3d3f8d3832921f99daf8ce1953304763c2e76c62 (diff)
Adding SQLMap unit tests. Allow sqlmap to use Prado's caching module to cache records.
Diffstat (limited to 'demos/sqlmap-sample/protected/petshop-db')
-rw-r--r--demos/sqlmap-sample/protected/petshop-db/products.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/demos/sqlmap-sample/protected/petshop-db/products.xml b/demos/sqlmap-sample/protected/petshop-db/products.xml
index bf1453b2..3c2899a7 100644
--- a/demos/sqlmap-sample/protected/petshop-db/products.xml
+++ b/demos/sqlmap-sample/protected/petshop-db/products.xml
@@ -1,7 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<sqlmap>
- <select id="SelectAllProducts">
+ <cacheModel id="product-cache" implementation="basic">
+ <!-- cache data for 60 seconds -->
+ <property name="expiry" value="60" />
+ </cacheModel>
+
+ <select id="SelectAllProducts" cacheModel="product-cache" >
SELECT *
FROM
product