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

Unified Diff: third_party/sqlite/src/test/trace.test

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. Created 5 years, 10 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
Index: third_party/sqlite/src/test/trace.test
diff --git a/third_party/sqlite/src/test/trace.test b/third_party/sqlite/src/test/trace.test
index ce5a2d712a4ea364bde3463262a8efa182ae1876..a64cc333fa59d483c7a7eeedeaf0f9fb2fbdba9a 100644
--- a/third_party/sqlite/src/test/trace.test
+++ b/third_party/sqlite/src/test/trace.test
@@ -48,6 +48,22 @@ do_test trace-1.5 {
db trace {}
db trace
} {}
+do_test trace-1.6 {
+ db eval {
+ CREATE TABLE t1b(x TEXT PRIMARY KEY, y);
+ INSERT INTO t1b VALUES('abc','def'),('ghi','jkl'),('mno','pqr');
+ }
+ set ::stmtlist {}
+ set xyzzy a*
+ db trace trace_proc
+ db eval {
+ SELECT y FROM t1b WHERE x GLOB $xyzzy
+ }
+} {def}
+do_test trace-1.7 {
+ set ::stmtlist
+} {{SELECT y FROM t1b WHERE x GLOB 'a*'}}
+db trace {}
# If we prepare a statement and execute it multiple times, the trace
# happens on each execution.

Powered by Google App Engine
This is Rietveld 408576698