sqlite-ruby 2.2.0-mswin32 → 2.2.1-mswin32

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,45 @@
1
+ #--
2
+ # =============================================================================
3
+ # Copyright (c) 2004, Jamis Buck (jgb3@email.byu.edu)
4
+ # All rights reserved.
5
+ #
6
+ # Redistribution and use in source and binary forms, with or without
7
+ # modification, are permitted provided that the following conditions are met:
8
+ #
9
+ # * Redistributions of source code must retain the above copyright notice,
10
+ # this list of conditions and the following disclaimer.
11
+ #
12
+ # * Redistributions in binary form must reproduce the above copyright
13
+ # notice, this list of conditions and the following disclaimer in the
14
+ # documentation and/or other materials provided with the distribution.
15
+ #
16
+ # * The names of its contributors may not be used to endorse or promote
17
+ # products derived from this software without specific prior written
18
+ # permission.
19
+ #
20
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
24
+ # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+ # =============================================================================
31
+ #++
32
+
33
+ module SQLite
34
+
35
+ module Version
36
+
37
+ MAJOR = 2
38
+ MINOR = 2
39
+ TINY = 1
40
+
41
+ STRING = [ MAJOR, MINOR, TINY ].join( "." )
42
+
43
+ end
44
+
45
+ end
Binary file
@@ -292,6 +292,10 @@ class TC_Database < Test::Unit::TestCase
292
292
 
293
293
  new_count = @db.get_first_value( "select count(*) from A" ).to_i
294
294
  assert_equal new_count, count
295
+
296
+ assert_nothing_raised do
297
+ @db.execute_batch( "delete from A where age = 200;\n" )
298
+ end
295
299
  end
296
300
 
297
301
  def test_transaction_block_errors
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.1
3
3
  specification_version: 1
4
4
  name: sqlite-ruby
5
5
  version: !ruby/object:Gem::Version
6
- version: 2.2.0
7
- date: 2004-10-27
6
+ version: 2.2.1
7
+ date: 2004-11-04
8
8
  summary: SQLite/Ruby is a module to allow Ruby scripts to interface with a SQLite database.
9
9
  require_paths:
10
10
  - lib
@@ -43,6 +43,7 @@ files:
43
43
  - lib/sqlite/version.rb
44
44
  - lib/sqlite/pragmas.rb
45
45
  - test/db
46
+ - test/lib
46
47
  - test/tc_parsed_statement.rb
47
48
  - test/tc_api_core.rb
48
49
  - test/tests.rb
@@ -52,6 +53,16 @@ files:
52
53
  - test/tc_type_translation.rb
53
54
  - test/tc_database.rb
54
55
  - test/db/fixtures.sql
56
+ - test/lib/sqlite_api.so
57
+ - test/lib/sqlite.rb
58
+ - test/lib/sqlite
59
+ - test/lib/sqlite/statement.rb
60
+ - test/lib/sqlite/database.rb
61
+ - test/lib/sqlite/parsed_statement.rb
62
+ - test/lib/sqlite/translator.rb
63
+ - test/lib/sqlite/resultset.rb
64
+ - test/lib/sqlite/version.rb
65
+ - test/lib/sqlite/pragmas.rb
55
66
  - README
56
67
  test_files:
57
68
  - test/tests.rb