Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: third_party/sqlite/src/test/tkt-26ff0c2d1e.test

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/test/tkt-02a8e81d44.test ('k') | third_party/sqlite/src/test/tkt-2d1a5c67d.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/tkt-26ff0c2d1e.test
diff --git a/third_party/sqlite/src/test/tkt-26ff0c2d1e.test b/third_party/sqlite/src/test/tkt-26ff0c2d1e.test
new file mode 100644
index 0000000000000000000000000000000000000000..83a4f3d6748ab7a1e1811edf7ce54882e1c9adb2
--- /dev/null
+++ b/third_party/sqlite/src/test/tkt-26ff0c2d1e.test
@@ -0,0 +1,33 @@
+# 2010 May 12
+#
+# The author disclaims copyright to this source code. In place of
+# a legal notice, here is a blessing:
+#
+# May you do good and not evil.
+# May you find forgiveness for yourself and forgive others.
+# May you share freely, never taking more than you give.
+#
+#***********************************************************************
+# This file implements regression tests for SQLite library. The
+# focus of this script testing a bug found in the OP_Variable optimizer
+#
+
+set testdir [file dirname $argv0]
+source $testdir/tester.tcl
+
+do_test bug-20100512-1 {
+ set DB [sqlite3_connection_pointer db]
+ set SQL {SELECT case when 1 then 99 else ? end + ?}
+ set STMT [sqlite3_prepare_v2 $DB $SQL -1 TAIL]
+ set TAIL
+} {}
+do_test bug-20100512-2 {
+ sqlite3_bind_parameter_count $STMT
+} 2
+do_test bug-20100512-3 {
+ sqlite3_bind_int $STMT 1 123
+ sqlite3_bind_int $STMT 2 456
+ sqlite3_step $STMT
+ sqlite3_column_int $STMT 0
+} {555}
+sqlite3_finalize $STMT
« no previous file with comments | « third_party/sqlite/src/test/tkt-02a8e81d44.test ('k') | third_party/sqlite/src/test/tkt-2d1a5c67d.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698