Added parameter 'clear_bound_vars', so we could reset the statement without clearing bound variables, so and current row is reset to the beginning.

It is used to support the Andorid' sqlite cursor feature which could move the cursor around the result set.

BUG=
TEST=Added a new test.
TBR=agl,akalin,michaeln

Review URL: http://codereview.chromium.org/10171014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133985 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/sql/connection_unittest.cc b/sql/connection_unittest.cc
index 96cc25b4..97dd152 100644
--- a/sql/connection_unittest.cc
+++ b/sql/connection_unittest.cc
@@ -195,7 +195,7 @@
 
   // After raze, page_size should still match the indicated value.
   ASSERT_TRUE(db().Raze());
-  s.Reset();
+  s.Reset(true);
   ASSERT_TRUE(s.Step());
   ASSERT_EQ(kPageSize, s.ColumnInt(0));
 }
@@ -218,7 +218,7 @@
   ASSERT_TRUE(db().Raze());
 
   // The second connection sees the updated database.
-  s.Reset();
+  s.Reset(true);
   ASSERT_TRUE(s.Step());
   ASSERT_EQ(0, s.ColumnInt(0));
 }