System.Data.SQLite

Login
This project makes use of Eagle, provided by Mistachkin Systems.
Eagle: Secure Software Automation

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Changes In Branch tkt-449885cc57 Excluding Merge-Ins

This is equivalent to a diff from d1d2020750 to a000fa4f91

2015-06-23
00:13
Reorganize the solution files. check-in: e0e67614a2 user: mistachkin tags: trunk
2015-06-15
05:58
Modify test case. Closed-Leaf check-in: a000fa4f91 user: mistachkin tags: tkt-449885cc57
2015-06-13
20:46
Add test cases for ticket [449885cc57]. check-in: e087483fc3 user: mistachkin tags: tkt-449885cc57
20:45
Update list of CONFIG parameters. check-in: d1d2020750 user: mistachkin tags: trunk
2015-06-09
23:13
Add BusyTimeout connection string property to set the busy timeout to be used by the SQLite core library. check-in: 873c720835 user: mistachkin tags: trunk

Added Tests/tkt-449885cc57.eagle.





































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
###############################################################################
#
# tkt-449885cc57.eagle --
#
# Written by Joe Mistachkin.
# Released to the public domain, use at your own risk!
#
###############################################################################

package require Eagle
package require Eagle.Library
package require Eagle.Test

runTestPrologue

###############################################################################

package require System.Data.SQLite.Test
runSQLiteTestPrologue

###############################################################################

runTest {test tkt-449885cc57-1.1 {Data Source with unescaped "#"} -setup {
  set savedDataDirectory [object invoke -create \
      AppDomain CurrentDomain.GetData DataDirectory]

  set directory [file join [getDatabaseDirectory] C#]
  object invoke AppDomain CurrentDomain.SetData DataDirectory $directory

  file mkdir $directory
  set fileName [file join $directory tkt-449885cc57-1.1.db]

  setupDb [appendArgs |DataDirectory| [file tail $fileName]] \
      "" "" "" "" "" false false
} -body {
  sql execute $db "CREATE TABLE t1(x);"
  sql execute $db "INSERT INTO t1 (x) VALUES(1);"

  list [file exists $fileName] \
      [sql execute -execute scalar $db "SELECT x FROM t1;"]
} -cleanup {
  cleanupDb $fileName db true false

  file rmdir $directory; # NOTE: Should now be empty.
  unset -nocomplain db fileName directory

  catch {
    object invoke AppDomain CurrentDomain.SetData DataDirectory \
        [expr {[string length $savedDataDirectory] > 0 ? \
        $savedDataDirectory : "null"}]
  }

  unset -nocomplain savedDataDirectory
} -constraints {eagle monoBug28 command.sql compile.DATA SQLite\
System.Data.SQLite} -result {True 1}}

###############################################################################

runTest {test tkt-449885cc57-1.2 {Data Source with escaped "#"} -setup {
  file mkdir [set directory [file join [getDatabaseDirectory] C#]]
  set fileName [file join $directory tkt-449885cc57-1.2.db]

  setupDb [appendArgs file: [string map [list # %23] $fileName]] \
      "" "" "" "" "" false true true
} -body {
  sql execute $db "CREATE TABLE t1(x);"
  sql execute $db "INSERT INTO t1 (x) VALUES(1);"

  list [file exists $fileName] \
      [sql execute -execute scalar $db "SELECT x FROM t1;"]
} -cleanup {
  cleanupDb $fileName db true false

  file rmdir $directory; # NOTE: Should now be empty.
  unset -nocomplain db fileName directory
} -constraints {eagle monoBug28 command.sql compile.DATA SQLite\
System.Data.SQLite} -result {True 1}}

###############################################################################

runSQLiteTestEpilogue
runTestEpilogue