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

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

Issue 949043002: Add //third_party/sqlite to dirs_to_snapshot, remove net_sql.patch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « third_party/sqlite/src/test/tpch01.test ('k') | third_party/sqlite/src/test/trace2.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « third_party/sqlite/src/test/tpch01.test ('k') | third_party/sqlite/src/test/trace2.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698