OLD | NEW |
1 # 2003 April 4 | 1 # 2003 April 4 |
2 # | 2 # |
3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
5 # | 5 # |
6 # May you do good and not evil. | 6 # May you do good and not evil. |
7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
9 # | 9 # |
10 #*********************************************************************** | 10 #*********************************************************************** |
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 SELECT name FROM noname.sqlite_master; | 852 SELECT name FROM noname.sqlite_master; |
853 SELECT name FROM inmem.sqlite_master; | 853 SELECT name FROM inmem.sqlite_master; |
854 } | 854 } |
855 } {noname inmem} | 855 } {noname inmem} |
856 do_test attach-10.2 { | 856 do_test attach-10.2 { |
857 lrange [execsql { | 857 lrange [execsql { |
858 PRAGMA database_list; | 858 PRAGMA database_list; |
859 }] 9 end | 859 }] 9 end |
860 } {4 noname {} 5 inmem {}} | 860 } {4 noname {} 5 inmem {}} |
861 | 861 |
| 862 # Attach with a very long URI filename. |
| 863 # |
| 864 db close |
| 865 sqlite3 db test.db -uri 1 |
| 866 do_execsql_test attach-11.1 { |
| 867 ATTACH printf('file:%09000x/x.db?mode=memory&cache=shared',1) AS aux1; |
| 868 CREATE TABLE aux1.t1(x,y); |
| 869 INSERT INTO aux1.t1(x,y) VALUES(1,2),(3,4); |
| 870 SELECT * FROM aux1.t1; |
| 871 } {1 2 3 4} |
| 872 |
| 873 |
862 finish_test | 874 finish_test |
OLD | NEW |