fireruby 0.2.0-mswin32 → 0.2.1-mswin32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/doc/CVS/Entries +4 -0
- data/doc/CVS/Repository +1 -0
- data/doc/CVS/Root +1 -0
- data/doc/README +16 -32
- data/examples/CVS/Entries +2 -0
- data/examples/CVS/Repository +1 -0
- data/examples/CVS/Root +1 -0
- data/lib/CVS/Entries +2 -2
- data/lib/fireruby.bundle +0 -0
- data/lib/fireruby.so +0 -0
- data/test/CVS/Entries +10 -14
- data/test/DatabaseTest.rb +0 -2
- data/test/StatementTest.rb +22 -0
- metadata +10 -3
- data/lib/doc.tar.gz +0 -0
data/doc/CVS/Entries
ADDED
data/doc/CVS/Repository
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/var/cvs/fireruby/fireruby/doc
|
data/doc/CVS/Root
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
:ext:paw220470@rubyforge.org:/var/cvs/fireruby
|
data/doc/README
CHANGED
@@ -1,41 +1,25 @@
|
|
1
|
-
== FireRuby Version 0.2.
|
2
|
-
This is
|
3
|
-
the Ruby language that provides access to the functionality of
|
4
|
-
relational database management system.
|
5
|
-
|
6
|
-
Still no Linux build as I don't have a Linux box to build it on.
|
1
|
+
== FireRuby Version 0.2.1
|
2
|
+
This is a bug fix release for version 0.2.0 of the FireRuby library. FireRuby is
|
3
|
+
an extension to the Ruby language that provides access to the functionality of
|
4
|
+
the Firebird relational database management system.
|
7
5
|
|
8
6
|
== Enhancements & Alterations
|
9
7
|
|
10
|
-
|
11
|
-
for queries. Calling the fetch method on a ResultSet object returns an object
|
12
|
-
of the new Row class. This class possesses a lot more information on the row
|
13
|
-
data, including the column name, column aliases, row number and column data.
|
14
|
-
See the API documentation for more information on this class.
|
15
|
-
|
16
|
-
A change has been made to the Database and Connection classes. Previously the
|
17
|
-
database user name and password was specified when creating a Database object.
|
18
|
-
This didn't make sense so the user name and password have now been switched to
|
19
|
-
be parameters of the connect method. The Connection class has also be updated
|
20
|
-
to reflect this change. Apologies if this breaks existing code but this kind of
|
21
|
-
change is better done sooner rather than later.
|
22
|
-
|
23
|
-
A few additional methods have been added to the existing class set. The
|
24
|
-
ResultSet class now has a method call exhausted? that can be used to detect
|
25
|
-
when there are no more rows available (the fetch method must have been called
|
26
|
-
at least once however). The Statement object now has a parameter_count method
|
27
|
-
that returns a count of the number of parameters require for the execution of
|
28
|
-
the SQL statement.
|
29
|
-
|
30
|
-
Also improved the documentation a little, by adding in the missing documentation
|
31
|
-
for the Blob class, including a piece on the actual usage of the library in
|
32
|
-
code, and adding a source example.
|
8
|
+
No new functionality added for this release.
|
33
9
|
|
34
10
|
== Bug Fixes
|
35
11
|
|
36
|
-
|
37
|
-
|
38
|
-
|
12
|
+
- Fixed an intermittent bug that was causing an access violation when the Ruby
|
13
|
+
interpreter attempted to clean up at exited. The access violation was
|
14
|
+
occurring in a Firebird function call so I'm not exactly sure why it was
|
15
|
+
happening. The code has been restructured to bypass the issue.
|
16
|
+
|
17
|
+
- Fixed a bug in the code for the Generator object that was leaving an active
|
18
|
+
transaction lying around whenever an exception occurred in a call to fetch a
|
19
|
+
value from the Generator.
|
20
|
+
|
21
|
+
- Fixed a buffer overrun bug were the size of an input string was being used
|
22
|
+
to determine values written rather than the size of an output field.
|
39
23
|
|
40
24
|
== Issues
|
41
25
|
|
@@ -0,0 +1 @@
|
|
1
|
+
/var/cvs/fireruby/fireruby/examples
|
data/examples/CVS/Root
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
:ext:paw220470@rubyforge.org:/var/cvs/fireruby
|
data/lib/CVS/Entries
CHANGED
data/lib/fireruby.bundle
CHANGED
Binary file
|
data/lib/fireruby.so
CHANGED
Binary file
|
data/test/CVS/Entries
CHANGED
@@ -1,17 +1,13 @@
|
|
1
1
|
/.gdb_history/1.1.1.1/Tue Mar 15 10:36:35 2005//
|
2
|
-
/ConnectionTest.rb/1.
|
3
|
-
/DDLTest.rb/1.
|
4
|
-
/DatabaseTest.rb/1.
|
5
|
-
/GeneratorTest.rb/1.
|
6
|
-
/ResultSetTest.rb/1.
|
7
|
-
/
|
8
|
-
/
|
2
|
+
/ConnectionTest.rb/1.2/Mon Mar 21 08:55:55 2005//
|
3
|
+
/DDLTest.rb/1.2/Mon Mar 21 08:55:55 2005//
|
4
|
+
/DatabaseTest.rb/1.2/Mon Mar 21 08:55:55 2005//
|
5
|
+
/GeneratorTest.rb/1.2/Mon Mar 21 08:55:55 2005//
|
6
|
+
/ResultSetTest.rb/1.2/Mon Mar 21 08:55:55 2005//
|
7
|
+
/RowTest.rb/1.1/Mon Mar 21 09:14:27 2005//
|
8
|
+
/SQLTest.rb/1.2/Mon Mar 21 08:55:55 2005//
|
9
|
+
/StatementTest.rb/1.2/Mon Mar 21 08:55:55 2005//
|
9
10
|
/TestSetup.rb/1.1.1.1/Tue Mar 15 10:37:07 2005//
|
10
|
-
/TransactionTest.rb/1.
|
11
|
-
/UnitTest.rb/1.
|
12
|
-
/example.c/1.1.1.1/Tue Mar 15 10:36:35 2005//
|
13
|
-
/fb.c/1.1.1.1/Tue Mar 15 10:36:35 2005//
|
14
|
-
/mfb/1.1.1.1/Tue Mar 15 10:36:35 2005//
|
15
|
-
/sql_unit_test.fdb/1.1.1.1/Tue Mar 15 10:36:45 2005//
|
16
|
-
/test.fdb/1.1.1.1/Tue Mar 15 10:37:07 2005//
|
11
|
+
/TransactionTest.rb/1.2/Mon Mar 21 08:55:55 2005//
|
12
|
+
/UnitTest.rb/1.2/Mon Mar 21 08:55:55 2005//
|
17
13
|
D
|
data/test/DatabaseTest.rb
CHANGED
@@ -38,7 +38,6 @@ class DatabaseTest < Test::Unit::TestCase
|
|
38
38
|
|
39
39
|
|
40
40
|
def test01
|
41
|
-
puts "Executing test01.\n\n"
|
42
41
|
db = Database.create(CREATE_FILE, DB_USER_NAME, DB_PASSWORD, 2048, 'ASCII')
|
43
42
|
|
44
43
|
assert(File.exist?(CREATE_FILE))
|
@@ -56,7 +55,6 @@ class DatabaseTest < Test::Unit::TestCase
|
|
56
55
|
end
|
57
56
|
|
58
57
|
def test02
|
59
|
-
puts "Executing test02.\n\n"
|
60
58
|
db = Database.new(DB_FILE);
|
61
59
|
|
62
60
|
assert(db.file == DB_FILE)
|
data/test/StatementTest.rb
CHANGED
@@ -99,4 +99,26 @@ class StatementTest < Test::Unit::TestCase
|
|
99
99
|
end
|
100
100
|
assert(total = 88)
|
101
101
|
end
|
102
|
+
|
103
|
+
def test03
|
104
|
+
d = nil
|
105
|
+
@database.connect(DB_USER_NAME, DB_PASSWORD) do |cxn|
|
106
|
+
cxn.execute_immediate('CREATE TABLE STRING_TEST(TEXT VARCHAR(10))')
|
107
|
+
cxn.start_transaction do |tx|
|
108
|
+
# Perform an trancated insert.
|
109
|
+
s = Statement.new(cxn, tx, 'INSERT INTO STRING_TEST VALUES(?)', 3)
|
110
|
+
s.execute_for(['012345678901234'])
|
111
|
+
|
112
|
+
# Perform a select of the value inserted.
|
113
|
+
r = cxn.execute('SELECT * FROM STRING_TEST', tx)
|
114
|
+
d = r.fetch
|
115
|
+
|
116
|
+
# Clean up.
|
117
|
+
s.close
|
118
|
+
r.close
|
119
|
+
end
|
120
|
+
assert(d[0] == '0123456789')
|
121
|
+
cxn.execute_immediate('DROP TABLE STRING_TEST')
|
122
|
+
end
|
123
|
+
end
|
102
124
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.8
|
|
3
3
|
specification_version: 1
|
4
4
|
name: fireruby
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.2.
|
7
|
-
date: 2005-03-
|
6
|
+
version: 0.2.1
|
7
|
+
date: 2005-03-30
|
8
8
|
summary: Ruby interface library for the Firebird database.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -28,7 +28,6 @@ authors:
|
|
28
28
|
- Peter Wood
|
29
29
|
files:
|
30
30
|
- lib/CVS
|
31
|
-
- lib/doc.tar.gz
|
32
31
|
- lib/fireruby.bundle
|
33
32
|
- lib/mkdoc
|
34
33
|
- lib/src.rb
|
@@ -51,9 +50,17 @@ files:
|
|
51
50
|
- test/CVS/Entries
|
52
51
|
- test/CVS/Repository
|
53
52
|
- test/CVS/Root
|
53
|
+
- doc/CVS
|
54
54
|
- doc/license.txt
|
55
55
|
- doc/README
|
56
|
+
- doc/CVS/Entries
|
57
|
+
- doc/CVS/Repository
|
58
|
+
- doc/CVS/Root
|
59
|
+
- examples/CVS
|
56
60
|
- examples/example01.rb
|
61
|
+
- examples/CVS/Entries
|
62
|
+
- examples/CVS/Repository
|
63
|
+
- examples/CVS/Root
|
57
64
|
test_files:
|
58
65
|
- test/UnitTest.rb
|
59
66
|
rdoc_options:
|
data/lib/doc.tar.gz
DELETED
Binary file
|