⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vtab_shared.test

📁 最新的sqlite3.6.2源代码
💻 TEST
字号:
# 2007 April 16## 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 tests interactions between the virtual table and# shared-schema functionality.## $Id: vtab_shared.test,v 1.2 2008/03/19 13:03:34 drh Exp $set testdir [file dirname $argv0]source $testdir/tester.tclifcapable !vtab||!shared_cache {  finish_test  return}db closesqlite3_enable_shared_cache 1sqlite3 db test.dbdo_test vtab_shared-1.0 {  register_echo_module [sqlite3_connection_pointer db]  catchsql {    CREATE TABLE t0(a, b, c);    CREATE VIRTUAL TABLE t1 USING echo(t0);  }} {1 {Cannot use virtual tables in shared-cache mode}}db closesqlite3_enable_shared_cache 0sqlite3 db test.dbdo_test vtab_shared-1.1 {  register_echo_module [sqlite3_connection_pointer db]  catchsql {    CREATE VIRTUAL TABLE t1 USING echo(t0);  }} {0 {}}db closesqlite3_enable_shared_cache 1sqlite3 db test.dbdo_test vtab_shared-1.2 {  register_echo_module [sqlite3_connection_pointer db]  catchsql {    SELECT * FROM t1;  }} [list 1 \  {malformed database schema (t1) - Cannot use virtual tables in shared-cache mode}]db closesqlite3_enable_shared_cache 0finish_test

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -